project_ccmpp_z_by_z: One-step cohort component population projection with flexible...

View source: R/project_ccmpp_z_by_z.R

project_ccmpp_z_by_zR Documentation

One-step cohort component population projection with flexible migration assumption

Description

This function takes a set of starting population and demographic inputs for the period time_start to time_start+z with age groups of width z and projects population forward z units of time.

Usage

project_ccmpp_z_by_z(
  z = 1,
  pop_count_age_m_start,
  pop_count_age_f_start,
  survival_ratio_age_m,
  survival_ratio_age_f,
  fert_rate_age_f,
  srb,
  mig_net_count_age_m,
  mig_net_count_age_f,
  mig_assumption = c("end", "even")
)

Arguments

z

width of age groups = length of one-step projection horizon

pop_count_age_m_start

a vector of male population counts at the start of the projection step by age

pop_count_age_f_start

a vector of female population counts at the start of the projection step by age

survival_ratio_age_m

a vector of survival ratios by age for males from a life table referencing the period time_start to time_start+z

survival_ratio_age_f

a vector of survival ratios by age for females from a life table referencing the period time_start to time_start+z

fert_rate_age_f

a vector of age-specific fertility rates referencing the period time_start to time_start+z

srb

a scalar for the sex ratio at birth for the period time_start to time_start+z (male births/female births)

mig_net_count_age_m

a vector of net migration counts for males by age referencing the period time_start to time_start+z

mig_net_count_age_f

a vector of net migration counts for females by age referencing the period time_start to time_start+z

mig_assumption

a control for the migration assumption. "end" means migration is accounted at end of projection period and has no influence on births or deaths during the period. "even" accounts for migration evenly distributed over the period and thus does influence births and deaths #'

Details

This function will accept any width of age group and projection horizon as long as those are equal e.g., use z=1 for a 1x1 projection of population by single year of age and 1 year projection horizon or use z=5 for a 5x5 projection of population by 5-year age groups and 5-year projection horizon

Value

a list of objects including projected population by age and sex, deaths by cohort and sex, births by mother's age, total births, and births by sex

Author(s)

Sara Hertog


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