[R-sig-ME] Profile function does not work with objekt of class "mer"

Friedericksen Hope friedericksen.hope at gmail.com
Tue Oct 19 09:12:59 CEST 2010


Hello,

I am unable to get profile zeta plots with the profile function. I am aware of the discussion of this issue earlier 
(http://markmail.org/message/gkfiwcj4ar4vk64e#query:Error%20in%20UseMethod%28profile%29%20%3A%20no%20applicable%20method%20for%20%27profile%27%20applied%20to%20an%20object%20of%20class%20mer%20lme4+page:1+mid:weai7ngdghudkbm5+state:results). 
Donald Bates stated there that with the useR! conference, there will be a solution. Unfortunately the commands introduced in the slides of his tutorial still give me the error.

What is the correct syntax for the profile function?

The following does not work:

>> fm2 <- lmer(diameter~1 + (1|plate) + (1|sample),Penicillin)
>> profile(fm2)
> Error in UseMethod("profile") :
>   no applicable method for 'profile' applied to an object of class "mer"

Session informations:
> R version 2.11.1 (2010-05-31)
> x86_64-pc-linux-gnu
>
> locale:
>  [1] LC_CTYPE=en_US.utf8       LC_NUMERIC=C              LC_TIME=en_US.utf8        LC_COLLATE=en_US.utf8
>  [5] LC_MONETARY=C             LC_MESSAGES=en_US.utf8    LC_PAPER=en_US.utf8       LC_NAME=C
>  [9] LC_ADDRESS=C              LC_TELEPHONE=C            LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] tools     stats     graphics  grDevices utils     datasets  methods   base
>
> other attached packages:
> [1] lme4_0.999375-35   Matrix_0.999375-44 lattice_0.19-13
>
> loaded via a namespace (and not attached):
> [1] grid_2.11.1   nlme_3.1-97   stats4_2.11.1

Thank you in advance!

Best,
Friedericksen




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