life_table: Compute period life tables from age-specific mortality rates

View source: R/life_table.R

life_tableR Documentation

Compute period life tables from age-specific mortality rates

Description

All available years and ages are included in the tables. $qx = mx/(1 + ((1-ax) * mx))$ as per Chiang (1984). Ages can be single years, abridged (0, 1, 5, 10, ...), or 5-year groups starting at age 5 or above. Missing mortality rates are interpolated (on the log scale) from neighbouring ages, with a warning.

Usage

life_table(.data, mortality)

Arguments

.data

A vital including an age variable and a variable containing mortality rates.

mortality

Variable in .data containing Mortality rates (mx). If omitted, the variable with name mx, Mortality or Rate will be used (not case sensitive).

Value

A vital object containing the index, keys, and the new life table variables mx, qx, lx, dx, Lx, Tx, ex, rx (survivorship ratios), nx (widths of the age groups) and ax (average years lived in each age group by those dying in it).

Author(s)

Rob J Hyndman

References

Chiang CL. (1984) The life table and its applications. Robert E Krieger Publishing Company: Malabar.

Keyfitz, N, and Caswell, H. (2005) Applied mathematical demography, Springer-Verlag: New York.

Preston, S.H., Heuveline, P., and Guillot, M. (2001) Demography: measuring and modeling population processes. Blackwell

Examples

# Compute Norwegian life table for females in 2003
norway_mortality |>
  dplyr::filter(Sex == "Female", Year == 2003) |>
  life_table()

vital documentation built on Oct. 5, 2026, 9:08 a.m.