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

Douglas Bates bates at stat.wisc.edu
Tue Oct 19 16:16:59 CEST 2010


On Tue, Oct 19, 2010 at 2:12 AM, Friedericksen Hope
<friedericksen.hope at gmail.com> wrote:
> 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?

At present only the lme4a package provides profiling of the deviance
function.  I would direct you to the R-forge repository except that
the Windows and Mac OS X builds on that repository are not completing.
 About the best I can offer is to have a binary package built on the
win-builder system and stick it on the web site somewhere.  I don't
use either Windows or Mac OS X myself so I need to rely on other
builders.

Martin and I had planned to release lme4a as lme4 some time ago but
both of us have very heavy teaching schedules this semester leaving us
with little time to devote to lme4.

> 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
>
> _______________________________________________
> R-sig-mixed-models at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
>




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