-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Via the broom package, the "tidyverse" movement is pushing towards model outputs that can be summed up in terms of vectors of about the lengths of model coefficient vectors (broom::tidy()), of vectors of about the length of fitted values or residuals (broom::augment()); and of whole-model summaries analogous to R^2 (broom::glance()).
Let's have tidy and glance method for xbal objects (and/or a successor class). Let's also arrange things so that they and print.xbal() share code, e.g. by having print.xbal() internally call on tidy.xbal() and glance.xbal for some or all of the formatting embedded in the "results" and "overall" portions of the display.
(In particular I've recently started to code into print.xbal special formatting rules that format by row to some extent and by column elsewhere. I think tidy.xbal() should emulate the unusual by-row formatting, for consistency; we might as well use the same routines in both places.)