MortalitySmooth which
optimizes the smoothing parameter for penalized B-splines within the
function Mort1Dsmooth.
Mort1Dsmooth_optimize(x, y, offset, wei, psi2, B, DtD, a.init, MON, TOL1, TOL2, RANGE, MAX.IT, MET)RANGE in Mort1Dsmooth with method
equal to 1 or 2 (BIC and AIC). It employs the function
cleversearch from package svcm in two separate
steps. First it searches using a rough grid (4 times TOL2) and
the median of RANGE as starting lambda. Afterwards it searches
in the restricted range around the sub-optimal smoothing parameter,
using a finer grid defined by TOL2.This procedure allows to find a precise smoothing parameter in an efficient way: we do not explore the full range of possible lambda values, moving at most one grid step up or down. Furthermore the two steps routine reduces the risk of finding sub-optimal smoothing parameter.
Mort1Dsmooth_update,
Mort1Dsmooth_estimate,
Mort1Dsmooth.