[R] Retrieve estimates from glmer()

Ben Bolker bolker at ufl.edu
Thu Feb 4 15:26:09 CET 2010

Nai-Wei Chen <s90225007 <at> yahoo.com.tw> writes:

> I am running glmer() in R. How can I retrieve the estimates of fixed effects
and the variance of the random
> effects from the result? Thank you so much.

fixef(gm1)  ## fixed effects
VarCorr(gm1)  ## var-cov structure for random effects
VarCorr(gm1)$herd  ## extract first random effect
c(VarCorr(gm1)$herd)  ## drop attributes etc.

  questions like this are probably best asked on
r-sig-mixed-models at r-project.org

   Ben Bolker

More information about the R-help mailing list