Skip to contents

Build male/female life-table templates from target child mortality and life expectancy.

Usage

mod_lx(q0_5_m, e0_m, q0_5_f, e0_f, method = "wilmoth")

Arguments

q0_5_m

Male child mortality rate (probability of dying before age 5).

e0_m

Male life expectancy at birth.

q0_5_f

Female child mortality rate (probability of dying before age 5).

e0_f

Female life expectancy at birth.

method

Mortality model method. Currently only "wilmoth" is supported.

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"