Hi Cheryl,
Here is an example of how to get the fixed and random effects
covariance matrices.
require(lme4)
(fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy))
## fixed effects
vcov(fm1)
## random effects
VarCorr(fm1)
## for documentation, see
method?vcov("mer")
Hope this helps,
Josh
Hello,
Is there a way to get the Var-Cov matrix from the LMER function?
Thanks
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R
2 matches
Mail list logo