8 lines
658 B
R
8 lines
658 B
R
###R code to run a Monte Carlo of possible future deaths within population groups (age-sex).
|
|
|
|
source("Scripts/Mortality_Rate_Over_Time_Simulation_Function.r") #Load the mortality rate simulation functions. Note that this will clean the mortality rate data if already missing, by sourcing the data clean script
|
|
source("Scripts/Death_Simulation_Functions.r") #Load the death across population groups simulation functions.
|
|
MORTALITY_RATE_SIMULATION(NUM_SIMULATIONS,NUM_YEARS_PROJECTED,RERUN=RERUN_MORTALITY_SIMULATION) #Run a simulation of future mortality rates, this informs the Monte Carlo of actual deaths, given a future year, and set of demographics.
|
|
|
|
|