death_age_sex_loop_over_time: Loop over time to compute age-period deaths from cohort...

View source: R/death_helper_functions.R

death_age_sex_loop_over_timeR Documentation

Loop over time to compute age-period deaths from cohort deaths and lx and nLx life table values

Description

Loops over time to implement the death_cohort_period_to_age_period function for multiple periods of time.

Usage

death_age_sex_loop_over_time(dth_cohort, lx, nLx)

Arguments

dth_cohort

data frame with columns time_start, time_span, sex, age_start, age_span and value. Value contains the cohort-specific death counts output from the project_ccmpp_loop_over_time function

lx

data frame with columns time_start, time_span, sex, age_start, age_span and value. Value contains the lx values from the wpp inputs life table data frame

nLx

data frame with columns time_start, time_span, sex, age_start, age_span and value. Value contains the nLx values from the wpp inputs life table data frame

Value

a data frame with columns time_start, time_span, sex, age_start, age_span and value. Value contains the sex- and age-specific death counts

Author(s)

Sara Hertog


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