The output can optionally be returned and saved into an R
object, otherwise it simply appears at the console. The components of this object are redesigned in lessR
version 3.3 into (a) pieces of text that form the readable output and (b) a variety of statistics. The readable output are character strings such as tables amenable for viewing and interpretation. The statistics are numerical values amenable for further analysis, such as to be referenced in a subsequent R markdown document. The motivation of these three types of output is to facilitate R markdown documents, as the name of each piece, preceded by the name of the saved object followed by a \$, can be inserted into the R markdown document (see examples
).
TEXT OUTPUT
out_models
: The specification of the two models compared
out_anova
: Analysis of variance or, for logit, analysis of deviance
STATISTICS
fun.call
: Function call that generated the analysis
anova_tested
: Term that is tested
anova_residual
: Residual df, and either ss and ms or deviance for logit
anova_total
: For logit, total df and deviance
Although not typically needed for analysis, if the output is assigned to an object named, for example, n
, then the complete contents of the object can be viewed directly with the unclass
function, here as unclass(n)
. Invoking the class
function on the saved object reveals a class of out_all. The class of each of the text pieces of output is out_piece.