gam
model (note that the models are usually fitted by penalized likelihood maximization).logLik.gam(object,...)gam as produced by gam().logLik object: see logLik.logLik.glm which corrects the degrees of
freedom for use with gam objects. The function is provided so that AIC functions correctly with
gam objects, and uses the appropriate degrees of freedom (accounting
for penalization). Note, when using AIC for penalized models, that the
degrees of freedom are the effective degrees of freedom and not the number of
parameters, and the model maximizes the penalized likelihood, not the actual likelihood!
AIC