Re: [R] correlation structure in lmer

2007-08-30 Thread Douglas Bates
On 8/30/07, Douglas Bates <[EMAIL PROTECTED]> wrote: > On 8/29/07, Fränzi Korner <[EMAIL PROTECTED]> wrote: > > > how can I specify a correlation structure in the lmer-function as it is > > possible in lme(formula, ..., corr=corAR1(form=...))? > > The short answer is "you can't". My response was i

Re: [R] correlation structure in lmer

2007-08-30 Thread Douglas Bates
On 8/29/07, Fränzi Korner <[EMAIL PROTECTED]> wrote: > how can I specify a correlation structure in the lmer-function as it is > possible in lme(formula, ..., corr=corAR1(form=...))? The short answer is "you can't". __ R-help@stat.math.ethz.ch mailing

[R] correlation structure in lmer

2007-08-30 Thread Fränzi Korner
Hi how can I specify a correlation structure in the lmer-function as it is possible in lme(formula, ..., corr=corAR1(form=...))? Thanks Fränzi __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the pos

[R] correlation structure

2007-06-25 Thread Daniel O'Shea
I have been using a nlme model and wish to specify the correlation structure. My data is grouped (bas), but I have no time component or adequate spatial description beyond the grouping variable. So I chose the simplest structure and updated my original nlme model by: update(model, corr=corCompS

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

2006-10-30 Thread Benjamin Tyner
Thanks! Douglas Bates wrote: > On 10/30/06, Benjamin Tyner <[EMAIL PROTECTED]> 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 >> "corre

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

2006-10-30 Thread Douglas Bates
On 10/30/06, Benjamin Tyner <[EMAIL PROTECTED]> 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 nl

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

2006-10-30 Thread David Barron
You haven't specified a random equation. Try: fit<-lme(fixed=y~g,random=~1|g,correlation=corAR1(0,~1|g)) On 30/10/06, Benjamin Tyner <[EMAIL PROTECTED]> 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

[R] correlation structure in lme without random effect

2006-10-30 Thread Benjamin Tyner
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@