Re: [R] interactions and GAM

2007-03-01 Thread Simon Wood
Don't know if this helps, but... gam in package mgcv will let you set up smooths that interact with factors using the `by' variable mechanism. See ?gam.models, particularly the last example. Prediction is supported. Simon -- > Simon Wood, Mathematical Sciences, University of Bath, Bath, BA2 7

[R] interactions and GAM

2007-02-27 Thread Beaulaton Laurent
Dear R-users, I have 1 remark and 1 question on the inclusion of interactions in the gam function from the gam package. I need to fit quantitative predictors in interactions with factors. You can see an example of what I need in fig 9.13 p265 from Hastie and Tibshirani book (1990). It's clea