[R-sig-ME] compareFits() for residuals

Christoph Scherber Christoph.Scherber at agr.uni-goettingen.de
Tue Apr 20 16:00:43 CEST 2010


Dear all,

Suppose I want to compare the residuals of two lme fits using the compareFits() function. Is this possible (in principle)?

I end up with an error message here:

fm1 <- lme(distance ~ age, data = Orthodont)
fm2 <- lme(distance ~ age, data = Orthodont, weights=varPower())
compareFits(resid(fm1),resid(fm2))

Many thanks,
Christoph





 --
Dr. rer.nat. Christoph Scherber
University of Goettingen
DNPW, Agroecology
Waldweg 26
D-37073 Goettingen
Germany

phone +49 (0)551 39 8807
fax   +49 (0)551 39 8806

Homepage http://www.gwdg.de/~cscherb1




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