Skip to content
Prev 715 / 20628 Next

Coefficient of determination (R^2) when using lme()

That's going to break in the next version of R (due out later this month).

Use

 lmer.object at y

not

 attr(lmer.object, "y")

Slots in S4 classed objects were initially implemented as attributes
but they are not attributes.

In general, if you want to determine the structure of an object, use
the str() function.  It's even better to use the appropriate extractor
functions as the value of the extractor function should be consistent
across versions of the package but the structure of the object changes
between versions.  The appropriate extractor in this case is

model.response(lmer.object)
On Tue, Apr 1, 2008 at 9:40 AM, Jarrett Byrnes <jebyrnes at ucdavis.edu> wrote: