Package: LEdecomp 1.0.14

LEdecomp: Decompose Life Expectancy by Age (and Cause)

A set of all-cause and cause-specific life expectancy sensitivity and decomposition methods, including Arriaga (1984) <doi:10.2307/2061029>, others documented by Ponnapalli (2005) <doi:10.4054/DemRes.2005.12.7>, lifetable, numerical, and other analytic or algorithmic approaches such as Horiuchi et al (2008) <doi:10.1353/dem.0.0033>, or Andreev et al (2002) <doi:10.4054/DemRes.2002.7.14>.

Authors:Tim Riffe [aut, cre], David Atance [aut], Josep Lledo [aut]

LEdecomp_1.0.14.tar.gz
LEdecomp_1.0.14.zip(r-4.7)LEdecomp_1.0.14.zip(r-4.6)LEdecomp_1.0.14.zip(r-4.5)
LEdecomp_1.0.14.tgz(r-4.6-any)LEdecomp_1.0.14.tgz(r-4.5-any)
LEdecomp_1.0.14.tar.gz(r-4.7-any)LEdecomp_1.0.14.tar.gz(r-4.6-any)
LEdecomp_1.0.14.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
LEdecomp/json (API)

# Install 'LEdecomp' in R:
install.packages('LEdecomp', repos = c('https://timriffe.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/timriffe/ledecomp/issues

Datasets:

On CRAN:

Conda:

4.22 score 3 stars 9 scripts 437 downloads 48 exports 22 dependencies

Last updated from:735b143187. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK145
source / vignettesOK156
linux-release-x86_64OK147
macos-release-arm64OK145
macos-oldrel-arm64OK122
windows-develOK115
windows-releaseOK108
windows-oldrelOK111
wasm-releaseOK94

Exports:abridge_mxald_to_Lxandreevandreev_symarriagaarriaga_symavailable_methodschandrasekaran_IIchandrasekaran_IIILEdecomplL_to_exlopez_ruzickalopez_ruzicka_symlx_to_dxmx_to_axmx_to_e0mx_to_exmx_to_qxqx_to_lxrcumsumsen_andreevsen_andreev_instantaneoussen_andreev_instantaneous2sen_andreev_symsen_andreev_sym_instantaneoussen_andreev_sym_instantaneous2sen_arriagasen_arriaga_instantaneoussen_arriaga_instantaneous2sen_arriaga_symsen_arriaga_sym_instantaneoussen_arriaga_sym_instantaneous2sen_chandrasekaran_IIsen_chandrasekaran_II_instantaneoussen_chandrasekaran_II_instantaneous2sen_chandrasekaran_IIIsen_chandrasekaran_III_instantaneoussen_chandrasekaran_III_instantaneous2sen_e0_mx_ltsen_lopez_ruzickasen_lopez_ruzicka_instantaneoussen_lopez_ruzicka_instantaneous2sen_lopez_ruzicka_symsen_lopez_ruzicka_sym_instantaneoussen_lopez_ruzicka_sym_instantaneous2sen_minsen_numsen_resid

Dependencies:clicpp11data.tableDemoDecompfarverggplot2gluegtableisobandlabelinglifecyclenumDerivR6rbibutilsRColorBrewerRdpackrlangS7scalesvctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Abridge a single-year mx schedule to 0,1,5,... using lifetable quantitiesabridge_mx
Calculate the lifetable exposureald_to_Lx
Andreev (1982) component decomposition of e0 difference by ageandreev
Decompose using a symmetrical variant of the Andreev components approach.andreev_sym
classic Arriaga decompositionarriaga
Decompose using a symmetrical variant of the Arriaga approach.arriaga_sym
List available decomposition methodsavailable_methods
II approach of Chandrasekaran decomposition approachchandrasekaran_II
Chandrasekaran III decompositionchandrasekaran_III
Function for applying different Life-Expectancy decomposition and sensitivity methodsLEdecomp
calculate remaining life expectancy 'ex' for each agelL_to_ex
Lopez-Ruzicka decompositionlopez_ruzicka
Symmetric Lopez-Ruzicka decompositionlopez_ruzicka_sym
Calculate the lifetable death distributionlx_to_dx
produce single-age 'ax' valuesmx_to_ax
calculate life expectancy at birth from mortality ratesmx_to_e0
calculate remaining life expectancy from mortality ratesmx_to_ex
produce single-age 'qx' valuesmx_to_qx
Plot Life-Expectancy Decomposition Results (ggplot2)plot.LEdecomp
Calculate the survival curveqx_to_lx
top-down cumulative sums, as in the lifetable Txrcumsum
the sensitivity implied by an Andreev decompositionsen_andreev
Estimate sensitivity of life expectancy for a set of mortality ratessen_andreev_instantaneous
Estimate sensitivity of life expectancy for a set of mortality rates by perturbing in the log space.sen_andreev_instantaneous2
Estimate sensitivity of life expectancy using a symmetrical Andreev approach.sen_andreev_sym
Instantaneous sensitivity via symmetrical Andreev decompositionsen_andreev_sym_instantaneous
Estimate sensitivity of life expectancy for a set of mortality rates by perturbing in the log space.sen_andreev_sym_instantaneous2
the sensitivity implied by a classic Arriaga decompositionsen_arriaga
Estimate sensitivity of life expectancy for a set of mortality ratessen_arriaga_instantaneous
Estimate sensitivity of life expectancy for a set of mortality rates by perturbing in the log space.sen_arriaga_instantaneous2
Estimate sensitivity of life expectancy using a symmetrical Arriaga approach.sen_arriaga_sym
Instantaneous sensitivity via symmetrical Arriaga decompositionsen_arriaga_sym_instantaneous
Estimate sensitivity of life expectancy for a set of mortality rates by perturbing in the log space.sen_arriaga_sym_instantaneous2
Sensitivity from Chandrasekaran II decompositionsen_chandrasekaran_II
Instantaneous sensitivity via Chandrasekaran II decompositionsen_chandrasekaran_II_instantaneous
Log-space instantaneous sensitivity via Chandrasekaran II decompositionsen_chandrasekaran_II_instantaneous2
Sensitivity from Chandrasekaran III decompositionsen_chandrasekaran_III
Instantaneous sensitivity via Chandrasekaran III decompositionsen_chandrasekaran_III_instantaneous
Log-space instantaneous sensitivity via Chandrasekaran III decompositionsen_chandrasekaran_III_instantaneous2
A direct approximation of the sensitivity of life expectancy at birth to changes in mortality.sen_e0_mx_lt
Sensitivity from Lopez-Ruzicka decompositionsen_lopez_ruzicka
Instantaneous sensitivity via Lopez-Ruzicka decompositionsen_lopez_ruzicka_instantaneous
Log-space instantaneous sensitivity via Lopez-Ruzicka decompositionsen_lopez_ruzicka_instantaneous2
Sensitivity from symmetric Lopez-Ruzicka decompositionsen_lopez_ruzicka_sym
Instantaneous sensitivity via symmetrical Lopez-Ruzicka decompositionsen_lopez_ruzicka_sym_instantaneous
Log-scale instantaneous sensitivity via symmetrical Lopez-Ruzicka decompositionsen_lopez_ruzicka_sym_instantaneous2
sen_minsen_min
A numerical approximation of the sensitivity of life expectancy at birth to changes in mortality.sen_num
sen_residsen_resid
US Mortality dataUS_data
US cause-of-death Mortality dataUS_data_CoD