Skip to content
Prev 10210 / 20628 Next

Autocorrelation in a GAMM for nightly time series

On Thu, 2013-06-06 at 16:29 +1200, Andrew Digby wrote:
<snip/>
<snip />
Can I just check that you are using the normalised residuals here? The
default for `resid()` will give you deviance? residuals and won't take
the covariance matrix into account. The normalised residuals will do
that:

resid(mod$lme, type = "normalised")

See ?resid.lme with the nlme package loaded.

This often catches peoples out (me included) at first.

G