Skip to content

Data and code on the population effects of mask-wearing on COVID

License

Notifications You must be signed in to change notification settings

g-leech/masks_v_mandates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code and data for Leech et al (2021), "Mass mask-wearing is associated with reduced COVID-19 transmission"

by Charlie Rogers-Smith and Gavin Leech, based on the work of Brauner et al.

Linux

Installation

  1. git clone https://github.com/g-leech/masks_v_mandates.git
  2. Get Poetry.
cd masks_v_mandates
poetry install
cd data/raw
wget https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv
wget https://www.gstatic.com/covid19/mobility/Region_Mobility_Report_CSVs.zip
unzip Region_Mobility_Report_CSVs.zip
rm Region_Mobility_Report_CSVs.zip
wget https://github.com/OxCGRT/covid-policy-tracker/blob/master/data/OxCGRT_latest.csv
python ../../scripts/pull_from_umd_api.py
cd ../..

Run

  1. poetry shell
  2. python scripts/produce_master_model_data.py
  3. mkdir pickles
  4. python3 scripts/main_model_runner.py --model="cases" --masks="wearing" --mob="include"
  5. python3 scripts/main_model_runner.py --model="cases" --masks="mandate" --mob="include"

After about 6 hours, this will produce two posterior traces in pickles which can be loaded and visualised with model_check_and_viz, changing the filenames in Load pickles.

Datasets

The data used is from the following sources.

About

Data and code on the population effects of mask-wearing on COVID

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published