Description Usage Arguments Details Value
Get life-table nax values from nqx using the constant nmx assumption.
1 | naxCFMfromnqx(x, nx, nqx, npx, k, last_open)
|
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)? |
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.
The nax as a numeric vector of length(nx)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.