Re: [R] autocorrelation in gams

2008-08-15 Thread Kingsford Jones
Keeping Gavin's advice in mind, you may also want to look at ?acf (and see section 14.1 of MASS) and help(ACF, package=nlme) (see section 5.3 of MEMSS). These are useful functions for exploring the 1d empirical autocorrelation structure of model residuals. hth, Kingsford Jones On Fri, Aug 15, 20

Re: [R] autocorrelation in gams

2008-08-15 Thread Gavin Simpson
On Thu, 2008-08-14 at 16:12 +0100, Abigail McQuatters-Gollop wrote: > Hi, > > I am looking at the effects of two explanatory variables on chlorophyll. > The data are an annual time-series (so are autocorrelated) and the > relationships are non-linear. I want to account for autocorrelation in > my

[R] autocorrelation in gams

2008-08-14 Thread Abigail McQuatters-Gollop
Hi, I am looking at the effects of two explanatory variables on chlorophyll. The data are an annual time-series (so are autocorrelated) and the relationships are non-linear. I want to account for autocorrelation in my model. The model I am trying to use is this: Library(mgcv) gam1 <-g