[R-sig-ME] fixef and lme4

Ben Zuckerberg bz73 at cornell.edu
Tue Nov 25 18:03:23 CET 2008


I can not seem to get the fixef function to work in lme4.  Any 
suggestions would be very welcome...

 >  data(sleepstudy)

 >  test<-lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject), sleepstudy)

 >  summary(test)

Linear mixed model fit by REML

Formula: Reaction ~ Days + (1 | Subject) + (0 + Days | Subject)

   Data: sleepstudy

  AIC  BIC logLik deviance REMLdev

 1754 1770 -871.8     1752    1744

Random effects:

 Groups   Name        Variance Std.Dev.

 Subject  (Intercept) 627.568  25.0513

 Subject  Days         35.858   5.9882

 Residual             653.584  25.5653

Number of obs: 180, groups: Subject, 18

Fixed effects:

            Estimate Std. Error t value

(Intercept)  251.405      6.885   36.51

Days          10.467      1.559    6.71

Correlation of Fixed Effects:

     (Intr)

Days -0.184

 >  fixef(test)

Error in UseMethod("fixef") : no applicable method for "fixef




More information about the R-sig-mixed-models mailing list