[R-sig-ME] lme4 ranef

Douglas Bates bates at stat.wisc.edu
Thu Apr 21 14:52:14 CEST 2011


You have the nlme package loaded after the lme4 package which means
that ranef refers to the nlme version, not to the lme4 version.  You
can either:
  - no attach both the nlme package and the lme4 package
simultaneously (recommended)
  - use the fully qualified name lme4::ranef(...)

On Wed, Apr 20, 2011 at 7:42 PM, Tokihiko Ando <tokihiko.ando at gmail.com> wrote:
> Thank you Professor Bates.
>
> Here is my session info...
> ---------
> R version 2.12.2 (2011-02-25)
> Platform: i386-pc-mingw32/i386 (32-bit)
>
> locale:
> [1] LC_COLLATE=Japanese_Japan.932  LC_CTYPE=Japanese_Japan.932
> LC_MONETARY=Japanese_Japan.932
> [4] LC_NUMERIC=C                   LC_TIME=Japanese_Japan.932
>
> attached base packages:
> [1] stats     graphics  grDevices datasets  utils     methods   base
>
> other attached packages:
>  [1] classInt_0.1-14    e1071_1.5-25       class_7.3-3
> spdep_0.5-29       deldir_0.0-13
>  [6] maptools_0.8-3     foreign_0.8-42     nlme_3.1-98
> MASS_7.3-11        boot_1.2-43
> [11] sp_0.9-79          coda_0.14-2        lme4_0.999375-39
> Matrix_0.999375-46 lattice_0.19-17
>
> loaded via a namespace (and not attached):
> [1] grid_2.12.2   stats4_2.12.2 tools_2.12.2
> --------------
>
> Sincerely,
>
> Toki
>
>
> On Thu, Apr 21, 2011 at 1:27 AM, Douglas Bates <bates at stat.wisc.edu> wrote:
>>
>> Could you please send the results of
>>
>> library(lme4)
>> sessionInfo()
>>
>> so we can see what version of R and the lme4 package you are using?
>> Also, please cc: the R-SIG-Mixed-Models at R-project.org mailing list as
>> I am doing.  Many of those who read the list can answer such questions
>> and often much faster than I am able to get around to doing so.
>>
>> On Wed, Apr 20, 2011 at 3:48 AM, Tokihiko Ando <tokihiko.ando at gmail.com>
>> wrote:
>> > Dear Professor,
>> >  I meant, I can check random effects, but I miss dotplot(ranef(x))
>> > mostly...
>> > Toki Ando
>> >
>> >
>> > On Wed, Apr 20, 2011 at 4:54 PM, Tokihiko Ando <tokihiko.ando at gmail.com>
>> > wrote:
>> >>
>> >> Dear Professor Bates,
>> >>
>> >> Hi, I'm a big fun of lme4 and wondering if ranef function still works
>> >> or
>> >> not.
>> >> I have made several programs using ranef in the last few months and it
>> >> had
>> >> worked well till recently,
>> >> but the same programs don't work today.
>> >>
>> >> The error message I got is in Japanese, but it says "There's no method
>> >> that uses ranef to class mer object."
>> >>
>> >> Could you tell me what's happening?
>> >>
>> >> Sincerely,
>> >>
>> >> Toki Ando, Tokyo
>> >
>> >
>
>




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