Population_Study/Prelim_Process.sh
2025-12-09 13:10:49 -07:00

22 lines
1.4 KiB
Bash

#Clean and collect data sets used in later code.
Rscript "./Scripts/1A_Download_and_Process_Population_Data.r"
Rscript "./Scripts/1B_Process_Existing_NIH_Mortality_Data.r" #Somewhat outdated, could use only the data in 1E and 1F but speeds up completion time to not change
Rscript "./Scripts/1C_Download_and_Process_Demographic_Data.r"
Rscript "./Scripts/1D_Use_ACS_Census_Data_to_Estimate_Kemmerer_Demographics.r"
Rscript "./Scripts/1E_Process_WONDER_Mortality_Data.r"
Rscript "./Scripts/1F_Process_WONDER_Single_Age_Sex_Mortality_Data.r"
Rscript "./Scripts/1G_Terra_Power_Migration_Rates.r"
#Create data sets used in later simulations, produce some results for the report when related to this process.
Rscript "./Scripts/2A_Birth_Rate_Regression_and_Impart_Kemmerer_Births.r"
Rscript "./Scripts/2B_Impart_Deaths_and_Migration_to_Subregions.r"
Rscript "./Scripts/2C_Migration_by_Age_Regression.r"
Rscript "./Scripts/2D_Overall_Migration_ARIMA.r"
Rscript "./Scripts/2F_Create_Age_Sex_Specfic_Mortality_Trends.r"
Rscript "./Scripts/2G_Single_Age_Sex_ARIMA_Models.r"
Rscript "./Scripts/2E_Move_Current_Demographic_Data_to_Current_Year.r"
#Produce final results for either the simulation, or information for the report, but not anything used in later stages of the simulation
Rscript "./Scripts/3A_Population_Pyramid.r"
#wkhtmltopdf --disable-smart-shrinking --no-stop-slow-scripts --enable-local-file-access --page-width 85mm --page-height 328mm my_table.html output.pdf