Skip to content
Prev 30970 / 398506 Next

significant terms in spline model using GAM

- This is perhaps not the best way of thinking about the interaction terms,
there are certainly no terms like (AB)^10 or (AB)^15 in the basis produced
by s(A,B,k=10 or 15).
The default model selection used by gam() is GCV, a mean square error
criterion, and I'm not sure how useful it is to mix model selection by
hypothesis testing with GCV model selection. I think that your results
indicate that in GCV terms your original choice of k=10 was too
restrictive. 

If you want to do model selection by hypothesis testing you can -
s(A,B,k=10,fx=TRUE) is nested within s(A,B,k=15,fx=TRUE), for example -
however the process is not automated - you would have to construct
F-ratios (or deviance differences) yourself from the response data and the
fitted values. 

best,
Simon

_____________________________________________________________________