qx2mx: Death Probabilities to Mortality Rates

Description Usage Arguments Details Value See Also Examples

View source: R/3_demographicFunctions.R

Description

Function to convert death probabilities to mortality rates

Usage

1
qx2mx(qx, ax = 0.5)

Arguments

qx

death probabilities

ax

the average number of years lived between ages x and x +1 by individuals who die in that interval

Details

Function to convert death probabilities to mortality rates

Value

A vector of mortality rates

See Also

mxt, qxt, mx2qx

Examples

1
2
3
4
data(soa08Act)
soa08qx<-as(soa08Act,"numeric")
soa08mx<-qx2mx(qx=soa08qx)
soa08qx2<-mx2qx(soa08mx)

spedygiorgio/lifecontingencies documentation built on March 21, 2021, 5:36 a.m.