Do Public Health Efforts Matter? Explaining Cross-Country Heterogeneity in Excess Death During the COVID-19 Pandemic
Paper: https://www.nature.com/articles/s41598-023-43407-0
The code used to produce all the results and figures in the paper can be found in analysis/code/
and the data can be found in analysis/data/
.
To reproduce the main results in the paper, please run the following:
- Unzip
analysis/data/raw/variable_csv.zip
and unzipanalysis/data/raw/WHO_excess_death.zip
- If you want to run from scratch including the data pre-processing step, then run
analysis/code/data_preprocessing/main.R
which will populate the preprocessed folder. This is not necessary as the preprocessed dataset used in the paper are already inanalysis/data/preprocessed/
. - Gradient Boosting and Random Forest models:
analysis/code/analysis_word_GBMandRF.Rmd
. - Linear models:
analysis/code/analysis_word_linearModels.Rmd
. - For the boostrap confidence intervals of delta run
analysis/code/bootstrap_delta.R
. - For the bootstrap hypothesis test run
analysis/code/hypothesis_test.R
.