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

Manuel Spínola mspinola10 at gmail.com
Sun Mar 14 17:32:14 CET 2010


Thank you very much Ben.  That was the problem.

Manuel

Ben Bolker wrote:
> 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().
>
>
>   


-- 
Manuel Spínola, Ph.D.
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspinola at una.ac.cr
mspinola10 at gmail.com
Teléfono: (506) 2277-3598
Fax: (506) 2237-7036




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