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 Age integer. Lower bound of abridged age class AgeInt integer. Age class widths. nMx numeric. Age-specific central death rates. nAx numeric. Average time spent in interval by those deceased in interval. nqx numeric. Age-specific conditional death probabilities. lx numeric. Lifetable survivorship ndx numeric. Lifetable deaths distribution. nLx numeric. Lifetable exposure. Sx numeric. Survivor ratios in uniform 5-year age groups. Tx numeric. Lifetable total years left to live above age x. ex numeric. Age-specific remaining life expectancy.


timriffe/DemoTools documentation built on Oct. 14, 2024, 12:53 p.m.