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

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

On 10/30/06, Benjamin Tyner <> 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. mailing list PLEASE do read the posting guide 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 Please read the posting guide before posting to the list.