Skip to content
Prev 321856 / 398500 Next

mgcv: how select significant predictor vars when using gam(...select=TRUE) using automatic optimization

Jan,

What mgcv version are you using, please? (Older versions have a poor 
p-value approximation when select=TRUE, but of course it's possible that 
you've managed to break the newer approximation as well)

The 'select=TRUE' option adds a penalty to each smooth, to allow it to 
be penalized out of the model altogether via optimization of the 
smoothing parameter selection criterion. Usually it is better to use 
REML for smoothing parameter selection in this case using 
'method="REML"' as an option to gam. This is because REML is less prone 
to undersmoothing than GCV. So 'select=TRUE' is not selecting on the 
basis of the p-values, themselves, but obviously this sort of 
discrepancy should not be happening.

best,
Simon
On 17/04/13 15:50, Jan Holstein wrote: