gam have associate Predict.matrix
method functions to enable prediction from the fitted model.## S3 method for class 'cr.smooth':
Predict.matrix(object, data)
## S3 method for class 'cs.smooth':
Predict.matrix(object, data)
## S3 method for class 'cyclic.smooth':
Predict.matrix(object, data)
## S3 method for class 'pspline.smooth':
Predict.matrix(object, data)
## S3 method for class 'tensor.smooth':
Predict.matrix(object, data)
## S3 method for class 'tprs.smooth':
Predict.matrix(object, data)
## S3 method for class 'ts.smooth':
Predict.matrix(object, data)smooth.construct method having
processed a smooth specification object generated by an s or smooth.construct and smooth.construct2predict.gam etc.
to predict from a fitted gam model. See Predict.matrix for more details, or the specific
smooth.construct pages for details on a particular smooth class.