gam and of class
"gam" inheriting from classes "glm" and "lm". Method
functions anova, logLik, influence, plot,
predict, print, residuals and summary exist for
this class.All compulsory elements of "glm" and "lm" objects are present,
but the fitting method for a GAM is different to a linear model or GLM, so
that the elements relating to the QR decomposition of the model matrix are
absent.
gam object has the following elements:pterms) each parameter relates to: applies only to non-smooth terms.update to be used with gam objects, for example).gam control list used in the fit."glm" compatibility).
Only included if gam control argument element
keepData is set to TRUE (default is FALSE).min.sp argument to gam). May be larger than sp if some terms share
smoothing parameters, and/or some smoothing parameter values were supplied in the sp argument
of gam."GCV" or "UBRE", "REML", "P-REML", "ML",
"P-ML", "PQL", "lme.ML" or "lme.REML", depending on the fitting
criterion used."magic" parts of smoothing parameter estimation - this will not be very meaningful for pure "outer"
estimation of smoothing parameters. The items are: full.rank, The apparent rank of the problem given the model matrix and
constraints; rank, The numerical rank of the problem;
fully.converged, TRUE is multiple GCV/UBRE converged by meeting
convergence criteria and FALSE if method stopped with a steepest descent step
failure; hess.pos.defWas the hessian of the GCV/UBRE score positive definite at
smoothing parameter estimation convergence?; iter How many iterations were required to find the smoothing parameters?
score.calls, and how many times did the GCV/UBRE score have to be
evaluated?; rms.grad, root mean square of the gradient of the GCV/UBRE score at
convergence.na.action used in fitting.optimizer argument to gam, or "magic" if it's a pure
additive model.gam argument optimizer) then this is present and contains whatever was
returned by the optimization routine used (currently nlm or optim).terms object for strictly parametric part of model.sig2)TRUE if the scale parameter was estimated, FALSE otherwise.smooth.construct objects.full.sp. Divide the scale parameter by the smoothing parameters to get,
variance components, but note that this is not valid for smooths that have used rescaling to
improve conditioning.terms object of model model frame.vis.gam, in particular.Wood, S.N. (2006) Generalized Additive Models: An Introduction with R. Chapman & Hall/ CRC, Boca Raton, Florida
Key Reference on GAMs generally:
Hastie (1993) in Chambers and Hastie (1993) Statistical Models in S. Chapman and Hall.
Hastie and Tibshirani (1990) Generalized Additive Models. Chapman and Hall.
gam