Learn R Programming

lifecontingencies (version 1.3.1)

mx2qx: Mortality rates to Death probabilities

Description

Function to convert mortality rates to probabilities of death

Usage

mx2qx(mx, ax = 0.5)

Arguments

mx

mortality rates vector

ax

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

Value

A vector of death probabilities

Details

Function to convert mortality rates to probabilities of death

See Also

mxt, qxt, qx2mx

Examples

Run this code
# NOT RUN {
#using some recursion
qx2mx(mx2qx(.2))

# }

Run the code above in your browser using DataLab