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. >
library(lme4) example(lmer) 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-mod...@r-project.org cheers Ben Bolker ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.