Use an initial population pyramid and population change rates to predict future population pyramids.

ComputePopulationProjection(
  initialPopulation,
  populationChangeRates,
  years,
  normalize = NULL,
  growthFlag = TRUE
)

Arguments

initialPopulation

Population structure

populationChangeRates

Population change rates (both fertility and mortality)

years

Vector of years to model

normalize

Whether or not to normalize the initial population default = NULL, meaning don't normalize. A numeric value means normalize to that value.

growthFlag

If FALSE, normalize each year to the same population as the initial year (default = TRUE)

Value

Demographics time-series

Examples

if (FALSE) {
library(pacehrh)
pacehrh::Trace(TRUE)

pacehrh::InitializePopulation()
pacehrh::InitializeScenarios()
pacehrh::InitializeStochasticParameters()
pacehrh::InitializeSeasonality()

scenario <- "ScenarioName"

set.seed(54321)

scenarioData <- SaveBaseSettings(scenario)
ConfigureExperimentValues()

exp <- pacehrh:::EXP
gpe <- pacehrh:::GPE

population <- ComputePopulationProjection(
  exp$initialPopulation,
  exp$populationChangeRates,
  gpe$years,
  normalize = scenarioData$BaselinePop,
  growthFlag = scenarioData$o_PopGrowth
)
}