| life_table | R Documentation |
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.
life_table(.data, mortality)
.data |
A |
mortality |
Variable in |
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).
Rob J Hyndman
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
# Compute Norwegian life table for females in 2003
norway_mortality |>
dplyr::filter(Sex == "Female", Year == 2003) |>
life_table()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.