[R] correlation structure in lme without random effect

From: Benjamin Tyner <btyner_at_stat.purdue.edu>
Date: Mon 30 Oct 2006 - 17:20:28 GMT


I was hoping to fit along the lines of

g<-gl(20,5)
y<-runif(100)
fit<-lme(fixed=y~g,correlation=corAR1(0,~1|g))

But I get the error "Incompatible formulas for groups in "random" and "correlation""

Any help would be greatly appreciated.
Ben



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 Tue Oct 31 04:24:51 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 Tue 31 Oct 2006 - 05:30:14 GMT.

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