Auxiliary for Controlling pclm Fitting
Arguments
- lambda
Smoothing parameter to be used in pclm estimation. If
lambda = NAan algorithm will find the optimal values.pclmtakes a single value.pclm2Dtakes two, one for the age axis and one for the year axis, and either may beNAto be found by optimisation while the other is held fixed.- kr
Knot ratio. Number of internal intervals used for defining 1 knot in B-spline basis construction. See
MortSmooth_bbase. Default2incontrol.pclmand7incontrol.pclm2D. In the two-dimensional modelkrapplies to both axes, so it must not exceed the length of the shorter one: a panel of fewer thankryears has no internal knot and is rejected.- deg
Degree of the splines needed to create equally-spaced B-splines basis over an abscissa of data. Default: 3, a cubic spline. Must be an integer of at least 2.
- int.lambda
If
lambdais optimized an interval to be searched needs to be specified. Format: vector containing the end-points. Defaultc(0.1, 1e5)incontrol.pclmandc(0.1, 1e3)incontrol.pclm2D. The optimum does sometimes land on a boundary; widen the interval iflambdacomes back equal to an end-point.- diff
An integer indicating the order of differences of the components of PCLM coefficients. Default value: 2.
- opt.method
Selection criterion of the model. Possible values are
"AIC"and"BIC". Default:"BIC".- max.iter
Maximal number of iterations used in fitting procedure.
- tol
Relative tolerance in PCLM fitting procedure. The iteration stops when the mean absolute relative error of the fitted bin totals falls below
tol, or when that error stops changing by more than 0.1%, whichever comes first. Default:1e-3. Note that it is a convergence tolerance on the fit, not an accuracy guarantee on the result. With a largelambdathe penalty holds the fit away from the observed bins and the realized mean relative error can be several percent, because the second stopping rule fires long beforetolis reached. Settol = 1e-12to see this: the fit does not move.
