Learn R Programming

lifecontingencies (version 1.3.12)

mx2qx: Mortality rates to Death probabilities

Description

Function to convert mortality rates to probabilities of death

Usage

mx2qx(mx, ax = 0.5)

Value

A vector of death probabilities

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

Details

Function to convert mortality rates to probabilities of death

See Also

mxt, qxt, qx2mx

Examples

Run this code

#using some recursion
qx2mx(mx2qx(.2))

Run the code above in your browser using DataLab