Learn R Programming

The lifecontingencies package

Classes and methods for managing life tables (for single and multiple decrements) and actuarial tables. Moreover, functions to easily perform demographic, financial and actuarial mathematics on life contingencies insurances calculations are contained therein.

Install the current release from CRAN:

install.packages('lifecontingencies')

Install the development version from GitHub:

devtools::install_github('spedygiorgio/lifecontingencies')

Copy Link

Version

Install

install.packages('lifecontingencies')

Monthly Downloads

886

Version

1.6.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Giorgio Spedicato

Last Published

August 23rd, 2026

Functions in lifecontingencies (1.6.0)

duration

Compute the duration or the convexity of a series of CF
getDecrements

Function to return the decrements defined in the mdt class
endowment_trio

Endowment, insurance, pure endowment, and survival annuity APVs (shared topic)
getOmega

Function to return the terminal age of a life table.
lifecontingencies-package

Package to perform actuarial mathematics on life contingencies and classical financial mathematics calculations.
intensity2Interest

Functions to switch from interest to intensity and vice versa.
interest2Discount

Functions to switch from interest to discount rates
increasingAnnuity

Increasing annuity.
getLifecontingencyPv

Functions to obtain the present value of a life contingency given the time to death
exn

Expected residual life.
nominal2Real

Functions to switch from nominal / effective / convertible rates
presentValue

Present value of a series of cash flows
multiple life probabilities

Functions to deals with multiple life models
mx2qx

Mortality rates to Death probabilities
Axn.mdt

Multiple decrement life insurance
Lxt

Various demographic functions
mdt-class

Class "mdt"
mxt

Central mortality rate
probs2lifetable

Life table from probabilities
lifetable-class

Class "lifetable"
qxt.prime.fromMdt

Return Associated single decrement from absolute rate of decrement
pxt

Functions to evaluate survival, death probabilities and deaths.
qx2mx

Death Probabilities to Mortality Rates
rLifeContingencies

Function to generate samples from the life contingencies stochastic variables
pxyt

Functions to evaluate joint survival probabilities.
soa08Act

Society of Actuaries Illustrative Life Table with interest rate at 6
SoAISTdata

SoA illustrative service table
rmdt

Simulate from a multiple decrement table
rLifes

Function to generate random future lifetimes
soaLt

Society of Actuaries life table
soa08

Society of Actuaries Illustrative Life Table object.
axyn

Functions to evaluate life insurance and annuities on two heads.
accumulatedValue

Function to evaluate the accumulated value.
actuarialtable-class

Class "actuarialtable"
autoplot.lifetable

Autoplot a life table
Axyzn

Multiple lifes insurances and annuities
Iaxn

Increasing annuity life contingencies
annuity

Annuity
Isn

Function to calculated accumulated increasing annuity future value.
arithmetic_variation_insurances

Life insurance with arithmetic-variation benefit (increasing/decreasing, fractional claims)
decreasingAnnuity

Function to evaluate decreasing annuities.
demoJapan

Japan Mortality Rates for life table construction
demoChina

China Mortality Rates for life table construction
demoIta

Italian population life tables for males and females
Uk life tables

Uk AM AF 92 life tables
demoFrance

French population life tables
demoCanada

Canada Mortality Rates for UP94 Series
demoGermany

German population life tables
de_angelis_di_falco

Italian Health Insurance Data
demoUk

UK life tables
demoUsa

United States Social Security life tables