pclm.fit | R Documentation |
This is an internal function used to estimate PCLM model. It is used by
pclm
and pclm2D
functions
pclm.fit(
x,
y,
nlast,
offset,
out.step,
verbose,
lambda,
kr,
deg,
diff,
max.iter,
tol,
type
)
x |
Vector containing the starting values of the input intervals/bins.
For example: if we have 3 bins |
y |
Vector with counts to be ungrouped. It must have the same dimension
as |
nlast |
Length of the last interval. In the example above |
offset |
Optional offset term to calculate smooth mortality rates. A vector of the same length as x and y. See \insertCiterizzi2015;textualungroup for further details. |
out.step |
Length of estimated intervals in output. Values between 0.1 and 1 are accepted. Default: 1. |
verbose |
Logical value. Indicates whether a progress bar should be
shown or not.
Default: |
lambda |
Smoothing parameter to be used in pclm estimation.
If |
kr |
Knot ratio. Number of internal intervals used for defining 1 knot in
B-spline basis construction. See |
deg |
Degree of the splines needed to create equally-spaced B-splines basis over an abscissa of data. |
diff |
An integer indicating the order of differences of the components of PCLM coefficients. Default value: 2. |
max.iter |
Maximal number of iterations used in fitting procedure. |
tol |
Relative tolerance in PCLM fitting procedure. Default: 0.1% i.e. the estimated aggregate bins should be in the 0.1% error margin. |
type |
Type of PCLM model. Options: |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.