View source: R/3_demographicFunctions.R
qx2mx | R Documentation |
Function to convert death probabilities to mortality rates
qx2mx(qx, ax = 0.5)
qx |
death probabilities |
ax |
the average number of years lived between ages x and x +1 by individuals who die in that interval |
Function to convert death probabilities to mortality rates
A vector of mortality rates
mxt
, qxt
, mx2qx
data(soa08Act)
soa08qx<-as(soa08Act,"numeric")
soa08mx<-qx2mx(qx=soa08qx)
soa08qx2<-mx2qx(soa08mx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.