Skip to content
Prev 5320 / 20628 Next

Extract information from lmer summary table

Hi Sam,

I agree with Ista's suggestion.  Alternatively (and probably this is 
what you had in mind),  you can access components (slots) of  mer-object 
in a following way:

library(lme4)

## From a fitted model
fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy)
class(fm1)                #  mer
slotNames("mer")   #   34 slot names
slot(fm1, "fixef")      #    fixef(fm1) also works
fm1 at fixef

### Similarly from a summary
summ <- summary(fm1)
class(summ)          # summary.mer
slotNames("summary.mer")   # 42 slot names
slot(summ, "coefs")                 # coefs(summ) also works
summ at coefs

Thank you

Andrzej Galecki
On 2/4/2011 12:13 PM, Ista Zahn wrote: