naxCFMfromnqx: Calculate nax From nqx Using Constant Force of Mortality...

Description Usage Arguments Details Value

Description

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

Usage

1
naxCFMfromnqx(x, nx, nqx, npx, k, last_open)

Arguments

nx

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

nqx

Probability to die within age interval [x, x+nx) given survival to x.

npx

Probability to survive age interval [x, x+nx) given survival to x.

k

Number of age groups.

last_open

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

Details

For all age groups but the last we calculate: nax = -nx/nqx - nx/log(npx) + nx

If the last age group is closed we linearly extrapolate the last nax from the preceding two nax.

If the last age group is open we set the last nax to NA.

Value

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


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