Description Usage Arguments Details Value
Get life-table nax values from nmx using the constant nmx assumption.
1 | naxCFMfromnmx(nx, nmx, k, last_open)
|
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)? |
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]
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.