Project single-age survivorship lx from a target life expectancy (e0).
The function uses an iterative semi-approximate method.
Examples
data("inparm_scene", package = "fastproj")
if (requireNamespace("DemoTools", quietly = TRUE)) {
inparm_lt <- mod_lx(0.00318, 76.75, 0.00264, 82.22)
lx <- proj_lx(
ex_p = inparm_scene[[1]][1, 2],
lx_model = inparm_lt[[1]][, "lx"],
axn_model = inparm_lt[[1]][, "nax"],
age_group.n = 101
)
range(lx)
}
#> [1] 0.01005245 1.00000000