This routine optimizes a GCV or UBRE score in this way. Basically the GCV or
UBRE score is evaluated for each trial set of smoothing parameters by
estimating the GAM for those smoothing parameters. The score is minimized
w.r.t. the parameters numerically, using newton
(default), optim
or nlm
. Exact
derivatives of the score can be used by fitting with gam.fit2
or
link{gam.fit3}
(for exact first and second derivatives). This
improves efficiency and reliability relative to relying on finite
difference derivatives.
Not normally called directly, but rather a service routine for gam
.
gam.outer(lsp,fscale,family,control,method,gamma,G,...)
gam.fit
if pure
finite differencing is being used.gam.method
. This defines
the optimization method to use.gam.setup
, containing most of what's
needed to actually fit GAM.gam.fit2
(ultimately).gam.fit2
, gam
, mgcv
, magic