Mike,

Please keep the mailing list in cc.

The value specifies the variable(s) which defines the 'distance' between the observations. That is something the model can't guess.

Maybe you should do some reading (e.g. Pinheiro and Bates (2000) or Zuur et al (2009))

Best regards,

Thierry

----------------------------------------------------------------------------
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek
team Biometrie & Kwaliteitszorg
Gaverstraat 4
9500 Geraardsbergen
Belgium

Research Institute for Nature and Forest
team Biometrics & Quality Assurance
Gaverstraat 4
9500 Geraardsbergen
Belgium

tel. + 32 54/436 185
Thierry.Onkelinx@inbo.be
www.inbo.be

To call in the statistician after the experiment is done may be no more than asking him to perform a post-mortem examination: he may be able to say what the experiment died of.
~ Sir Ronald Aylmer Fisher

The plural of anecdote is not data.
~ Roger Brinner

The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey

Van: Mike Gibson [mailto:megalops31@hotmail.com]
Verzonden: vrijdag 1 juli 2011 19:12
Aan: ONKELINX, Thierry
Onderwerp: RE: [R-sig-ME] including covariance pattern in a nlme model

Thanks.

Is it OK to not include a value in the corAR1 brackets?  Or, what value would you put in the brackets ?    i.e. corAR1()

Mike

> From: Thierry.ONKELINX@inbo.be
> To: megalops31@hotmail.com; r-sig-mixed-models@r-project.org
> Subject: RE: [R-sig-ME] including covariance pattern in a nlme model
> Date: Thu, 30 Jun 2011 08:46:24 +0000
>
> I think you need some extra brackets.
>
> update(LVB.nlme, corr=corAR1())
>
>
> > -----Oorspronkelijk bericht-----
> > Van: r-sig-mixed-models-bounces@r-project.org<mailto:r-sig-mixed-models-bounces@r-project.org> [mailto:r-sig-mixed-models-
> > bounces@r-project.org<mailto:bounces@r-project.org>] Namens Mike Gibson
> > Verzonden: woensdag 29 juni 2011 18:01
> > Aan: r-sig-mixed-models@r-project.org<mailto:r-sig-mixed-models@r-project.org>
> > Onderwerp: [R-sig-ME] including covariance pattern in a nlme model
> >
> >
> > I am trying to include a defined covariance pattern in my nlme model. I followed
> > an example made by Bates online. I am close but I keep getting an error
> > message. Any help would be greatly appreciated. The details are below.
> >
> >
> > Here is my code: I already defined an equation for LVB (von Bert growth
> > equation).
> >
> > LVB.nlme=nlme(L~LVB(Age,t0,Lmax,K), data=datagr,
> > fixed=list(t0~1,Lmax~1,K~1), random=t0+Lmax+K~1, start=list(fixed=c(t0=-1.0,
> > Lmax=700, K=0.25)), control=nlmeControl(maxIter=10000, tolerance=1e-2,
> > msVerbose=TRUE))
> >
> > #Everthing is fine up to this point. Next, I define the covariance structure.
> >
> > LVB2.nlme<-update(LVB.nlme, corr=corAR1)
> >
> > #This is where I am stuck. I get the following error message:
> >
> > ERROR: object of type 'closure' is not subsettable
> >
> >
> > I would greatly appreciate any help.
> >
> > Mike
> >
> >
> >
> > [[alternative HTML version deleted]]
> >
> > _______________________________________________
> > R-sig-mixed-models@r-project.org<mailto:R-sig-mixed-models@r-project.org> mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models

	[[alternative HTML version deleted]]


