lt_complete_loop_over_time: Compute complete life tables for multiple time periods

View source: R/lt_helper_functions_wpp.R

lt_complete_loop_over_timeR Documentation

Compute complete life tables for multiple time periods

Description

This function computes complete life table values, looping over time periods and using the lt_single_mx() function in DemoTools.

Usage

lt_complete_loop_over_time(mx, sex, a0rule = "ak", OAnew = 130)

Arguments

mx

data frame. "value" column contains age-specific mortality rates by time_start and age_start for one sex.

sex

character. string indicating "m" male, "f" female, or "b" both sexes.

a0rule

character. string "ak" for andreev-kinkaid and "cd" for coale-demeny estimation of 1a0.

OAnew

numeric. The starting age for the new open age group.

Value

a data frame with "indicator" labeling the life table column name and "value" containing the value of that measure, by single year of age_start and time_start

Author(s)

Sara Hertog


markalava/ccmppWPP documentation built on April 21, 2022, 12:36 a.m.