Published March 25, 2022
| Version v1
Software
Open
Repo for Leech & Rogers-Smith et al (2021), "Mass mask-wearing is associated with reduced COVID-19 transmission"
Description
by Charlie Rogers-Smith and Gavin Leech, based on the work of Brauner et al.
Linux
Installation
git clone https://github.com/g-leech/masks_v_mandates.git
- 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
poetry shell
python scripts/produce_master_model_data.py
mkdir pickles
python3 scripts/main_model_runner.py --model="cases" --masks="wearing" --mob="include"
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.
- National nonpharmaceutical interventions: OxCGRT.
- National confirmed case counts: Johns Hopkins CSSE via OxCGRT.
- World mask wearing survey: UMD / Facebook
- US mask wearing survey: Rader (2021)
- National mobility index: Google Mobility Reports
Files
ascertainment_ci.pdf
Files
(233.9 MB)
Name | Size | Download all |
---|---|---|
md5:60c862746a24aca4f731f66330822c88
|
15.5 kB | Preview Download |
md5:88e2b480d58e1dfdd3f244a22020b03a
|
1.1 kB | Download |
md5:1d176fe76c2199e5a094c6346666adab
|
22.1 kB | Preview Download |
md5:e55d1e35035d0b94a95d1de50be2de4c
|
17.4 MB | Preview Download |
md5:cfedbc5105115c39157ea94d7d9dd4fb
|
20.0 kB | Preview Download |
md5:80fd3c8fb1166c0673cd986c371014d8
|
20.2 kB | Preview Download |
md5:8418481b90216ab792aa04bed0c3de5b
|
175.8 MB | Preview Download |
md5:70c3ae61a874cd0416a081bce3eb4995
|
153.8 kB | Preview Download |
md5:23b2adf74a051c52a1fcb2cb9725bb09
|
16.2 kB | Preview Download |
md5:6f930fcb788cf72430c02c1c93081fee
|
33.2 kB | Preview Download |
md5:99212797b4b46ce4c40548f462f45def
|
33.4 kB | Preview Download |
md5:e047774dfa582be82a6e7a780b3aa3db
|
29.2 MB | Preview Download |
md5:3a27dba2958cbdf92997f95d62bd0f91
|
1.3 kB | Download |
md5:611567ebeabf69ac065c619b2da98151
|
2.1 kB | Preview Download |
md5:6e7c285f5cf759e32c276a79c47b0726
|
8.8 MB | Preview Download |
md5:29e89c3bf293d0736939f260a226c562
|
2.4 MB | Preview Download |