Build male/female life-table templates from target child mortality and life expectancy.
Value
A list of length 2:
[[1]]Male life table data frame (
age_group,nax,nmx,nqx,lx,ndx,nLx,Tx,ex).[[2]]Female life table data frame with the same columns.
Details
This function wraps DemoTools mortality models and returns single-age life
table parameters that are later used by proj_lx().
Examples
if (requireNamespace("DemoTools", quietly = TRUE)) {
inparm_lt <- mod_lx(q0_5_m = 0.00318, e0_m = 76.75, q0_5_f = 0.00264, e0_f = 82.22)
names(inparm_lt[[1]])
}
#> [1] "age_group" "nax" "nmx" "nqx" "lx" "ndx"
#> [7] "nLx" "Tx" "ex"