View source: R/D-Splines_fit.R
Dspline_fit | R Documentation |
Fits parameters to single-year or age-group (D,N)
Dspline_fit(
N,
D,
age_group_lower_bounds = 0:99,
age_group_upper_bounds = 1:100,
Amatrix,
cvector,
SIGMA.INV,
knots = seq(from = 3, to = 96, by = 3),
max_iter = 20,
theta_tol = 5e-05,
details = FALSE
)
added fitted log mort, basis, etc to detailed output
added ability to fit age-grouped as well as single-yr data
changed fitting algorithm from Newton-Raphson to (penalized) IRLS age_group_bounds is a (G+1) vector of ages v that define G closed age groups [v1,v2), [v2,v3)... [vG,vG+1) For ex. if age_group_bounds = c(0,1,5,10,15,...,90) then the age groups are [0,1), [1,5), [5,10), ..., [85,90) A more complete explanation is in https://github.com/schmert/TOPALS/blob/master/TOPALS_fitting_with_grouped_data.pdf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.