[R-sig-ME] problem with ranef

Malcolm Fairbrother m.fairbrother at bristol.ac.uk
Mon May 7 11:31:30 CEST 2012


Hi Gabriela,

You'll probably get a more helpful response about this if you provide the output from:

sessionInfo()

This will tell people what version of lme4 you're using, among other things.

- Malcolm



> From: Gabriela de Queiroz <gabidequeiroz at gmail.com>
> To: r-sig-mixed-models at r-project.org
> Cc: 
> Sent: Sunday, May 6, 2012 12:43 PM
> Subject: Re: [R-sig-ME] problem with ranef
> 
> Sorry, I mean:
> 
> fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy)
> fm2 <- lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject), sleepstudy)
> fm3 <- lmer(diameter ~ (1|plate) + (1|sample), Penicillin)
> ranef(fm1)
> 
> Error in UseMethod("ranef") :
> no applicable method for 'ranef' applied to an object of class "mer"
> 
> 
> 
> 
> On Sun, May 6, 2012 at 1:35 PM, Gabriela de Queiroz <gabidequeiroz at gmail.com
>> wrote:
> 
>> Dear users,
>> 
>> Is there someone having problem with *ranef*? I used that before but now
>> it is not working.
>> 
>> I tried the example on the help page but it didn't work.
>> 
>> fm3 <- lmer(diameter ~ (1|plate) + (1|sample), Penicillin)
>>> ranef(fm1)
>> 
>> Error in UseMethod("ranef") :
>> no applicable method for 'ranef' applied to an object of class "mer"
>> 
>> 
>> Any thoughts?
>> 
>> - Gabriela



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