Skip to content
Prev 13403 / 20628 Next

Binomial Temporal GAMM does not converge (R::mgcv)

First rule of statistics is start with the simplest reasonable model and
then try to build something more complex if it is necessary.

I would start with a standard mixed effects with random effects for
intercept and slope, judging from what you have already. This can be done
in lmer, you will probably need to set the nAGQ value to something greater
than 1, increase it until nothing seems to change. This is due to the high
variance for the intercept random effect, and is probably causing the
problem with your other analysis, as it uses PQL which just won't work well
in this case.

Then look at residuals versus fitted values, with a lowess curve as they
will be very noisy, and see if you need something more complex.  If so a
regression spline is easiest using ns() and a small number of knots.

Ken
On 5 June 2015 at 09:05, Benjamin Kellman <bkellman at eng.ucsd.edu> wrote: