[R] extracting r-sq from lme model

Douglas Bates bates at stat.wisc.edu
Wed Jan 9 15:50:19 CET 2002


"Buckley, Yvonne M" <y.buckley at ic.ac.uk> writes:

> I've been using the nlme library to construct lme models and I'd like to
> extract an r-sq value for the model - how do I do this?
> 
> With glm I just used the reported (null deviance-deviance)/(null deviance).
> Deviance is not reported directly for lme nor can it be extracted using the
> deviance() function.  How do I work out the deviance or can I work out R-sq
> in some other way?

I'm not sure that there is a definition of an r-sq for linear
mixed-effects models.  If you can give me a formula I can perhaps tell
you how to calculate the required quantities from a fitted lme model.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list