View source: R/3_demographicFunctions.R
mx2qx | R Documentation |
Function to convert mortality rates to probabilities of death
mx2qx(mx, ax = 0.5)
mx |
mortality rates vector |
ax |
the average number of years lived between ages x and x +1 by individuals who die in that interval |
Function to convert mortality rates to probabilities of death
A vector of death probabilities
mxt
, qxt
, qx2mx
#using some recursion
qx2mx(mx2qx(.2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.