Learn R Programming

LEdecomp An R package in progress giving lots of flexible options to decompose differences in life expetancy.

Copy Link

Version

Install

install.packages('LEdecomp')

Monthly Downloads

127

Version

1.0.4

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Tim Riffe

Last Published

November 11th, 2025

Functions in LEdecomp (1.0.4)

lx_to_dx

Calculate the lifetable death distribution
plot.LEdecomp

Plot Life-Expectancy Decomposition Results (ggplot2)
lopez_ruzicka_sym

Symmetric Lopez-Ruzicka decomposition
mx_to_qx

produce single-age qx values
mx_to_ex

calculate remaining life expectancy from mortality rates
mx_to_ax

produce single-age ax values
lopez_ruzicka

Lopez-Ruzicka decomposition
lL_to_ex

calculate remaining life expectancy ex for each age
mx_to_e0

calculate life expectancy at birth from mortality rates
sen_arriaga

the sensitivity implied by a classic Arriaga decomposition
sen_arriaga_sym_instantaneous2

Estimate sensitivity of life expectancy for a set of mortality rates by perturbing in the log space.
sen_arriaga_sym_instantaneous

Instantaneous sensitivity via symmetrical Arriaga decomposition
sen_arriaga_instantaneous

Estimate sensitivity of life expectancy for a set of mortality rates
method_registry

Registry of Available Life Expectancy Decomposition Methods
qx_to_lx

Calculate the survival curve
rcumsum

top-down cumulative sums, as in the lifetable Tx
sen_chandrasekaran_II

Sensitivity from Chandrasekaran II decomposition
sen_chandrasekaran_III

Sensitivity from Chandrasekaran III decomposition
sen_arriaga_instantaneous2

Estimate sensitivity of life expectancy for a set of mortality rates by perturbing in the log space.
sen_lopez_ruzicka_instantaneous2

Log-space instantaneous sensitivity via Lopez-Ruzicka decomposition
sen_lopez_ruzicka_instantaneous

Instantaneous sensitivity via Lopez-Ruzicka decomposition
sen_chandrasekaran_II_instantaneous

Instantaneous sensitivity via Chandrasekaran II decomposition
sen_chandrasekaran_II_instantaneous2

Log-space instantaneous sensitivity via Chandrasekaran II decomposition
sen_arriaga_sym

Estimate sensitivity of life expectancy using a symmetrical Arriaga approach.
sen_num

A numerical approximation of the sensitivity of life expectancy at birth to changes in mortality.
sen_lopez_ruzicka

Sensitivity from Lopez-Ruzicka decomposition
sen_e0_mx_lt

A direct approximation of the sensitivity of life expectancy at birth to changes in mortality.
sen_lopez_ruzicka_sym_instantaneous

Instantaneous sensitivity via symmetrical Lopez-Ruzicka decomposition
sen_lopez_ruzicka_sym

Sensitivity from symmetric Lopez-Ruzicka decomposition
sen_lopez_ruzicka_sym_instantaneous2

Log-scale instantaneous sensitivity via symmetrical Lopez-Ruzicka decomposition
sen_min

sen_min
sen_chandrasekaran_III_instantaneous2

Log-space instantaneous sensitivity via Chandrasekaran III decomposition
sen_chandrasekaran_III_instantaneous

Instantaneous sensitivity via Chandrasekaran III decomposition
sen_resid

sen_resid
available_methods

List available decomposition methods
LEdecomp

Function for applying different Life-Expectancy decomposition and sensitivity methods
arriaga_sym

Estimate sensitivity of life expectancy using a symmetrical Arriaga approach.
arriaga

classic Arriaga decomposition
US_data

US Mortality data
ald_to_Lx

Calculate the lifetable exposure
chandrasekaran_III

Chandrasekaran III decomposition
abridge_mx

Abridge a single-year mx schedule to 0,1,5,... using lifetable quantities
chandrasekaran_II

II approach of Chandrasekaran decomposition approach
US_data_CoD

US cause-of-death Mortality data