Whittaker-Henderson Smoothing (Maximum Likelihood, Generalized Fellner-Schall update)
WH_1d_perf(
d,
ec,
y,
wt,
q = 2,
p,
criterion = "REML",
lambda = 1000,
reg = FALSE,
verbose = FALSE,
accu_crit = 1e-12,
accu_dev = 1e-12
)
An object of class "WH_1d"
i.e. a list containing model fit,
variance, residuals and degrees of freedom as well as diagnosis to asses
the quality of the fit.
Vector of observed events
Vector of central exposure
Vector of observations
Optional vector of weights
Order of penalization. Polynoms of degrees q - 1 are considered smooth and are therefore unpenalized
The number of eigenvectors to keep
Criterion used to choose the smoothing parameter. One of "GCV" (default), "AIC" or "BIC".
Initial smoothing parameter
Should the regression framework be used ? Boolean. If TRUE
, will
stop after the first iteration.
Should information about the optimization progress be displayed
Tolerance for the convergence of the outer optimization procedure
Tolerance for the convergence of the optimization procedure