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
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
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
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
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
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
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
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@