01_environment.R
- Ensure that all packages listed are installed correctly under R version 4.4.0.
- In line 17, determine which gender ('males' vs 'females'), the number of people simulated per birth cohort (1000, 10000, etc.) and the final year of simulation (2016, 2050, 2100, etc.), and how many calibration initial parameter sets (40, 100, etc.) you want to run results for. The number of calibration initial parameter sets are irrelevant unless running '04_calibration.R'.
For EMEWS based GA calibration see emews/README.md
06_analysis.R
- Set the main working directory as 'mainDir'.
- Set the 'policyyear' to apply changes to smoking initiation and cessation probabilities beginning in that year.
- Name the different policy scenarios in the 'scenarios' vector.
- Set the policy's effects on initiation and cessation (1.0 = no change, 1.2 = 20% increase, 0.8 = 20% decrease) and the age group affected by the policy (0:99 = all ages are affected, 18:25 = young adults ages 18-25 are affected).
- Run the script to simulate each policy scenario. Results will be stored in the 'outputs' directory.