This upload contains all replication material for "Global evidence for ultraviolet radiation decreasing COVID-19 growth rates" (forthcoming, PNAS). Please note that previous versions of this upload provided data and code for the pre-print version of the article, which changed somewhat through the peer review process.
Authors: Tamma Carleton, Jules Cornetet, Peter Huybers, Kyle C. Meng, Jonathan Proctor.
Code is located within CCHMP_covid_climate_code_release.zip, and is written in R, Stata, and Matlab. The working directory should be set to the repository folder at the top of each script (all other filepaths are relative).
Please find the code needed to replicate the main findings of the paper described below:
- Plots of data: R and Stata scripts to make figures 1B, 2A/B/C, S1, S2, and S3, can be found within “code/analysis/data_plots/”.
- Regression analysis: Stata scripts to run the distributed lag regressions and plot the results in figures 2, 3C, S5, S6, S7, S8, S10, and S14, as well as Table S1, can be found within “code/analysis/regressions/”. R scripts for data analysis and plotting for figures 3A/B and S9 are also within "code/analysis/regressions/".
- Seasonal simulations: R and Stata scripts to replicate the seasonal simulation shown in figures 4, S4 and S11 can be found within “code/analysis/seasonal_sim/”.
- SEIR simulations: Matlab scripts to replicate the SEIR simulations shown in figures S12 and S13 can be found within “code/analysis/SEIR/”.
Data are located within CCHMP_covid_climate_data_release.zip.