Re: [R] correlation structure in lme without random effect

From: Douglas Bates <bates_at_stat.wisc.edu>
Date: Mon 30 Oct 2006 - 17:56:04 GMT

On 10/30/06, Benjamin Tyner <btyner@stat.purdue.edu> wrote:
> 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""

Use the gls function in the nlme package to fit a model with correlation but no random effects specification.



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 05:00:01 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 Mon 30 Oct 2006 - 18: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.