| VarCorr {lme4} | R Documentation |
Extract the estimated variances, standard deviations, and correlations
of the random-effects terms in a mixed-effects model, of class
mer.
When appropriate, the within-group error variance and standard deviation are also calculated.
## S4 method for signature 'mer'
VarCorr(x, ...)
## S4 method for signature 'merMCMC'
VarCorr(x, type = c("raw", "varcov", "sdcorr", "logs"), ...)
x |
a fitted model object, usually an object inheriting from
class |
type |
character string indicating the type of result to be
returned, either |
... |
Additional, optional arguments for some methods. At present none are used. |
an object of class VarCorr.
the lmer function and mer class;
the result class VarCorr.
(fm2 <- lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject),
data = sleepstudy))
(VC <- VarCorr(fm2))