lt_single2abridged: calculate an abridged life table that is consistent with a...

View source: R/lt_regroup_age.R

lt_single2abridgedR Documentation

calculate an abridged life table that is consistent with a life table by single year of age

Description

Computes abridged life table columns based on the lx, nLx , and ex values from a single year life table, in accordance with step 2.2 of the Human Life Table Protocol https://www.lifetable.de/methodology.pdf. Output abridged life table has same open age group as input single age life table

Usage

lt_single2abridged(lx, nLx, ex, Age = 1:length(lx) - 1, ...)

Arguments

lx

numeric. Vector of lifetable survivorship at single ages.

nLx

numeric. Vector of lifetable exposure at single ages.

ex

numeric. Vector of Age-specific remaining life expectancy at single ages.

Age

integer. Lower bounds of single ages.

...

optional args, not currently used.

Details

Similar to lt_abridged() details, forthcoming

Value

Abridged lifetable in data.frame with columns

  • Ageinteger. Lower bound of abridged age class,

  • AgeIntinteger. Age class widths.

  • nMxnumeric. Age-specific central death rates.

  • nAxnumeric. Average time spent in interval by those deceased in interval.

  • nqxnumeric. Age-specific conditional death probabilities.

  • lxnumeric. Lifetable survivorship

  • ndxnumeric. Lifetable deaths distribution.

  • nLxnumeric. Lifetable exposure.

  • Sxnumeric. Survivor ratios in uniform 5-year age groups.

  • Txnumeric. Lifetable total years left to live above age x.

  • exnumeric. Age-specific remaining life expectancy.


timriffe/DemoTools documentation built on Jan. 28, 2024, 5:13 a.m.