naxCFMfromnmx: Calculate nax From nmx Using Constant Force of Mortality...

Description Usage Arguments Details Value

Description

Get life-table nax values from nmx using the constant nmx assumption.

Usage

1
naxCFMfromnmx(nx, nmx, k, last_open)

Arguments

nx

Width of age interval [x, x+n).

nmx

Mortality rate in age interval [x, x+nx).

k

Number of age groups.

last_open

Is the last age group open (TRUE) or closed (FALSE)?

Details

For all age groups we calculate: nax = nx + 1/nmx - nx/(1 - exp(-nx*nmx))

If the last age group is open we calculate the last nax as the remaining life expectancy at x. Given the constant hazard assumption that is: nax[k] = 1/nmx[k]

Value

The nax as a numeric vector of length(nx).


jschoeley/pash documentation built on May 20, 2019, 2:07 a.m.