- d
Matrix of observed events, whose rows and columns must be named.
- ec
Matrix of central exposure. The central exposure corresponds to the
sum of the exposure duration over the insured population. An individual
experiencing an event of interest during the year will no longer be exposed
afterward and the exposure should be computed accordingly.
- lambda
Smoothing parameter vector of size 2
. If missing, an
optimization procedure will be used to find the optimal smoothing
parameter. If supplied, no optimal smoothing parameter search will take
place unless the method
argument is also supplied, in which case lambda
will be used as the starting parameter for the optimization procedure.
- criterion
Criterion to be used for the selection of the optimal
smoothing parameter. Default is "REML"
which stands for restricted
maximum likelihood. Other options include "AIC"
, "BIC"
and "GCV"
.
- method
Method to be used to find the optimal smoothing parameter.
Default to "fixed_lambda"
if lambda
is supplied, meaning no
optimization is performed. Otherwise, default to "perf"
which means the
faster performance iteration method is used. The alternative "outer"
method is safer but slower. Both those methods rely on the optim
function
from package stats
.
- max_dim
Number of parameters to be kept in the optimization problem.
Default is 200
. Values higher than 1000
may result in very high
computation times and memory usage.
- p
Optional vector of size 2
. Maximum number of eigenvectors to keep
on each dimension after performing the eigen decomposition of the
penalization matrix. If missing, will be automatically computed so that the
number of elements of the (square) matrices involved in the optimization
problem remains lower that the max_dim
argument
- q
Order of penalization vector of size 2
. Polynoms of degrees
(q[[1]] - 1,q[[2]] - 1)
are considered smooth and are therefore
unpenalized. Should be left to the default of c(2,2)
for most practical
applications.
- framework
Default framework is "ml"
which stands for maximum
likelihood unless the y
argument is also provided, in which case an
"reg"
or (approximate) regression framework is used.
- y
Optional matrix of observations whose rows and columns should be
named. Used only in the regression framework and if the d
and ec
arguments are missing (otherwise y
is automatically computed from d
and
ec
). May be useful when using Whittaker-Henderson smoothing outside of
the survival analysis framework.
- wt
Optional matrix of weights. As for the observation vector y
, Used
only in the regression framework and if the d
and ec
arguments are
missing (otherwise wt
is set equal to d
). May be useful when using
Whittaker-Henderson smoothing outside of the survival analysis framework.
- quiet
Should messages and warnings be silenced ? Default to FALSE
,
may be set to TRUE
is the function is called repeatedly.
- ...
Additional parameters passed to the smoothing function called.