Skip to content

How to extract variance components in lme4 1.0 ?

3 messages · Kevin Wright, Ben Bolker

#
Kevin Wright <kw.stat at ...> writes:
This is possible but undocumented (I've just documented it
in the master branch [1.1-0]):


print(VarCorr(fm1),comp=c("Std.Dev.","Variance"))
#
Kevin Wright <kw.stat at ...> writes:
Oops, I didn't read carefully enough.

  If you're willing to have the variances without the correlations/
covariances included, 

unlist(lapply(VarCorr(fm1),diag))
Subject.(Intercept)         Subject.age 
         5.41511574          0.05126949