[R] Linear Trend in Residiuals From lme

From: Rick Bilonick <rab45+_at_pitt.edu>
Date: Thu 10 Aug 2006 - 05:43:12 EST


I'm fitting a mixed effects model:

fit.1 <- lme(y~x,random=~1|id,data=df)

There are two different observations for each id for both x and y. When I use plot(fit.1), there is a strong increasing linear trend in the residuals versus the fitted values (with no outliers). This also happens if I use random=~x|id. Am I specifying something incorrectly?

Rick B.



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu Aug 10 05:50:19 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 11 Aug 2006 - 20:19:15 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.