Skip to content
Prev 66461 / 398503 Next

Prediction using GAM

R has *two* gam() functions in contributed packages 'mgcv' and 'gam'. 
Which is this?

Please see the posting guide and provide a reproducible example.

If this is package 'gam', prediction difficulties of this sort for the S 
version are discussed in the White Book, MASS and elsewhere (but I recall 
reading that they did not apply to the R version).
On Wed, 23 Mar 2005, Kerry Bush wrote:

            
It is unusual to use data() on your own objects, but we cannot reproduce 
what you did without data.