[R-sig-ME] Problems with function ranef in lme4

Ben Bolker bolker at ufl.edu
Sun Mar 14 15:02:33 CET 2010


Manuel Spínola wrote:
> Dear list members,
> 
> I am trying the function ranef from package lme4 and I got the following 
> error warning:
> 
>  > data(sleepstudy)
>  > fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy)
>  > ranef(fm1)
> Error en UseMethod("ranef") :
>   no applicable method for 'ranef' applied to an object of class "mer"
> 
> What could be the problem?
> Best,
> 
> Manuel
> 

  My guess is that you have nlme loaded at the same time.

  search()
  detach("package:nlme")

  If that doesn't work, post the results of sessionInfo().


-- 
Ben Bolker
Associate professor, Biology Dep't, Univ. of Florida
bolker at ufl.edu / people.biology.ufl.edu/bolker
GPG key: people.biology.ufl.edu/bolker/benbolker-publickey.asc




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