pasfr_global_model: Compute global normative model of proportion age-specific...

View source: R/project_variants.R

pasfr_global_modelR Documentation

Compute global normative model of proportion age-specific fertility rates

Description

This function calls bayesPop functions to return the proportional age-specific fertility rates associated with a global norm based on historical patterns of TFR and PASFR

Usage

pasfr_global_model(
  tfr_all_locs,
  pasfr_all_locs,
  pasfr_pattern_locs,
  present_year = 2021
)

Arguments

tfr_all_locs

character. file path to RData file with annual TFR; long format with LocID, time_start and value

pasfr_all_locs

character. file path to RData file with 1x1 PASFR; long format with LocID, time_start and value, age_start from 10 to 54

present_year

numeric. Last year of observed data?

pasfr_pattern

character. file path to RData file with 1 record per LocID; country_code = LocID, PASFRNorm = "Global Norm", PasfrGlobalNorm is c(0,1)flag indicating whether the countrys data should be used in computing global norm.

Details

calls embedded functions from bayesPop

Value

a matrix of annual PASFR norms; age from 10 to 54 in row, year in columns

Author(s)

Sara Hertog


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