Displaying 1 result from an estimated 1 matches for "wintersecchi".
2008 Aug 14
1
autocorrelation in gams
...ooking 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 <-gam(Chl~s(wintersecchi)+s(SST),family=gaussian,
na.action=na.omit, correlation=corAR1(form =~ Year))
the result I get is this:
Family: gaussian
Link function: identity
Formula:
CPRChl ~ s(wintersecchi) + s(SST)
Parametric coefficients:
Estimate Std. Error t value Pr(>|t|)
(Inter...