powered by
Use compare to quickly compare the estaimated parameters of the fits of multiple lmerMod or rlmerMod objects.
compare
The functions xtable.comparison.table and print.xtable.comparison.table are wrapper functions for the respective xtable and print.xtable functions.
xtable.comparison.table
print.xtable.comparison.table
xtable
print.xtable
The function getInfo is internally used to prepare object for producing a comparison chart in compare.
getInfo
compare(..., digits = 3, dnames = NULL, show.rho.functions = TRUE) # S3 method for comparison.table xtable (x, caption = NULL, label = NULL, align = NULL, digits = NULL, display = NULL, ...) # S3 method for xtable.comparison.table print (x, add.hlines = TRUE, latexify.namescol = TRUE, include.rownames = FALSE, ...) getInfo(object, ...) # S3 method for lmerMod getInfo (object, ...) # S3 method for rlmerMod getInfo (object, ...)
# S3 method for comparison.table xtable (x, caption = NULL, label = NULL, align = NULL, digits = NULL, display = NULL, ...)
# S3 method for xtable.comparison.table print (x, add.hlines = TRUE, latexify.namescol = TRUE, include.rownames = FALSE, ...)
getInfo(object, ...)
# S3 method for lmerMod getInfo (object, ...)
# S3 method for rlmerMod getInfo (object, ...)
objects to compare, or, for the xtable functions: passed to the respective xtable function.
number of digits to show in output
names of objects given as arguments (optional)
whether to show rho functions in output.
object of class "comparison.table" or "xtable.comparison.table"
see xtable.
replace empty lines in comparison table by hlines. Supersedes hline.after argument of print.xtable.
hline.after
replace “sigma” and “x” in the first column by latex equivalents.
include row numbers (the object returned by xtable.comparison.table includes names in the first column)
object
getInfo returns alist with estimated coefficients, estimated variance components, sigma, deviance and parameter configuration used to fit.
# NOT RUN { fm1 <- lmer(Yield ~ (1|Batch), Dyestuff) fm2 <- rlmer(Yield ~ (1|Batch), Dyestuff) compare(fm1, fm2) require(xtable) xtable(compare(fm1, fm2)) str(getInfo(fm1)) # }
Run the code above in your browser using DataLab