ComputePopulationProjection.Rd
Use an initial population pyramid and population change rates to predict future population pyramids.
ComputePopulationProjection(
initialPopulation,
populationChangeRates,
years,
normalize = NULL,
growthFlag = TRUE
)
Population structure
Population change rates (both fertility and mortality)
Vector of years to model
Whether or not to normalize the initial population default = NULL, meaning don't normalize. A numeric value means normalize to that value.
If FALSE, normalize each year to the same population as the initial year (default = TRUE)
Demographics time-series
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
)
}