Skip to content
Prev 312327 / 398506 Next

Plot with residuals in mgcv

Hi Silje,

Thanks for this. I guess RUTE is a numeric variable in this model and 
hence only has one associated random coefficient? This then causes a 
problem when calling predict.gam as part of processing 'residuals=T'. 
I've fixed the problem for the next release, but did you really want a 
single random slope for RUTE, or should it really have been declared as 
a factor variable? btw gamma doesn't do anything with ML and REML 
smoothness selection (it's only used in prediction error criteria 
smoothness selection to increase the penalization per effective degrees 
of freedom).

best,
Simon
On 28/11/12 13:02, silje sk?r wrote: