probs2lifetable: Life table from probabilities

Description Usage Arguments Details Value Warning Note Author(s) References See Also Examples

View source: R/3_demographicFunctions.R

Description

This function returns a newly created lifetable object given either survival or death (one year) probabilities)

Usage

1
probs2lifetable(probs, radix = 10000, type = "px", name = "ungiven")

Arguments

probs

A real valued vector representing either one year survival or death probabilities. The last value in the vector must be either 1 or 0, depending if it represents death or survival probabilities respectively.

radix

The radix of the life table.

type

Character value either "px" or "qx" indicating how probabilities must be interpreted.

name

The character value to be put in the corresponding slot of returned object.

Details

The ω value is the length of the probs vector.

Value

A lifetable object.

Warning

The function is provided as is, without any guarantee regarding the accuracy of calculation. We disclaim any liability for eventual losses arising from direct or indirect use of this software.

Note

This function allows to use mortality projection given by other softwares with the lifecontingencies package.

Author(s)

Giorgio A. Spedicato

References

Actuarial Mathematics (Second Edition), 1997, by Bowers, N.L., Gerber, H.U., Hickman, J.C., Jones, D.A. and Nesbitt, C.J.

See Also

actuarialtable

Examples

1
2
3
4
fakeSurvivalProbs=seq(0.9,0,by=-0.1)
newTable=probs2lifetable(fakeSurvivalProbs,type="px",name="fake")
head(newTable)
tail(newTable)

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