compare {robustlmm} | R Documentation |
Create comparison charts for multiple fits
Description
Use compare
to quickly compare the estimated parameters of the fits
of multiple lmerMod or rlmerMod objects.
Usage
compare(..., digits = 3, dnames = NULL, show.rho.functions = TRUE)
## S3 method for class 'lmerMod'
getInfo(object, ...)
## S3 method for class 'rlmerMod'
getInfo(object, ...)
## S3 method for class 'comparison.table'
xtable(
x,
caption = NULL,
label = NULL,
align = NULL,
digits = NULL,
display = NULL,
...
)
## S3 method for class 'xtable.comparison.table'
print(
x,
add.hlines = TRUE,
latexify.namescol = TRUE,
include.rownames = FALSE,
...
)
getInfo(object, ...)
Arguments
... |
objects to compare, or, for the |
digits |
number of digits to show in output |
dnames |
names of objects given as arguments (optional) |
show.rho.functions |
whether to show rho functions in output. |
object |
object |
x |
object of class "comparison.table" or "xtable.comparison.table" |
caption |
see |
label |
see |
align |
see |
display |
see |
add.hlines |
replace empty lines in comparison table by hlines.
Supersedes |
latexify.namescol |
replace “sigma” and “x” in the first column by latex equivalents. |
include.rownames |
include row numbers (the object returned by
|
Details
The functions xtable.comparison.table
and
print.xtable.comparison.table
are wrapper functions for the
respective xtable
and print.xtable
functions.
The function getInfo
is internally used to prepare object for
producing a comparison chart in compare
.
Value
getInfo
returns a list with estimated coefficients, estimated
variance components, sigma, deviance and parameter configuration used to
fit.
See Also
Examples
## 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))
## End(Not run)