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 mer .
|
type |
character string indicating the type of result to be
returned, either "raw" , the raw representation as in the
ST slot of the mer class, or
"varcov" , variances and covariances, or "sdcorr" ,
standard deviations and correlations, or "logs" , logs of the
standard deviations and Fisher's z transformation of the correlations. |
... |
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))