View source: R/project_variants.R
pasfr_global_model | R Documentation |
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
pasfr_global_model( tfr_all_locs, pasfr_all_locs, pasfr_pattern_locs, present_year = 2021 )
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. |
calls embedded functions from bayesPop
a matrix of annual PASFR norms; age from 10 to 54 in row, year in columns
Sara Hertog
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.