Skip to content

jamietam/mdse-microsim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

304 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run the Major Depression, Smoking, and E-cigarettes (MDSE) Microsimulation Model

R Environment:

01_environment.R

  1. Ensure that all packages listed are installed correctly under R version 4.4.0.
  2. 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'.

Calibration:

For EMEWS based GA calibration see emews/README.md

Policy simulation:

06_analysis.R

  1. Set the main working directory as 'mainDir'.
  2. Set the 'policyyear' to apply changes to smoking initiation and cessation probabilities beginning in that year.
  3. Name the different policy scenarios in the 'scenarios' vector.
  4. 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).
  5. Run the script to simulate each policy scenario. Results will be stored in the 'outputs' directory.

About

Major Depression, Smoking, and E-cigarette Microsimulation Model

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Generated from DARTH-git/darthpack