[R-sig-ME] lmer (lme4): extract random effects variance
Katharina May
may.katharina at googlemail.com
Mon Jul 27 20:10:10 CEST 2009
quite embarrassing but I've seemed to completely overlooked
VarCorr()
this does the work (just in case somebody else might have the same
problem): sqrt(VarCorr(fm1)$Subject)
2009/7/25 Katharina May <may.katharina at googlemail.com>:
> Hi *,
>
> I struggling with extracting some information out of a lmer model:
>
> How can I extract the random effects Groups (Name, Variance) like seen in output
> from summary(allo.lmer.ml):
> <snip>
> Random effects:
> Groups Name Variance Std.Dev. Corr
> as.factor(biomass_data$site.ID) (Intercept) 0.9714604 0.98563
> log(BM_roots) 0.0047707 0.06907 -0.131
> </snap>
>
>
> Somehow I cannot find anything within str(allo.lmer.ml) and
> str(summary(allo.lmer.ml))...
>
> I know to extract the AIC and the fixed effects part addressing the
> following slots
> of the summary output:
>
> summary(allo.lmer.ml)@AICtab
> summary(allo.lmer.ml)@coefs
>
>
> Thanks in advance for any hint, I'm still hoping to avoid copy paste
> as I've got several models.
>
> -Katharina
>
--
Time flies like an arrow, fruit flies like bananas.
More information about the R-sig-mixed-models
mailing list