This repo provides an analysis of the excess mortality in 2020 in most European countries. It contains the source code of both the scripts and the article, but not the data itself. There are two articles in this repo:
- Methodology and detailed per-country graphs (see also the source code).
- Comparison of countries and correlations (see also the source code).
The scripts behind the article are:
- country.R analyzes one country,
- all_countries.R aggregates all countries (this is typically the entry point).
If you are interested in the scripts:
-
Create an account with the website https://www.mortality.org/. Create a file named passwords.R with the following content:
hmd_username = "your@email.com" hmd_password = "******"
-
The script that downloads the data and processes them is generic.R. You need to set the
current_country_hmd_code
variable to a valid HMD country code before running this script. -
The top-level script is all_countries.R
This analysis is available (here)[https://gfraiteur.github.io/mortality/mortality_vaccinated_uk.html].
This article and the scripts are open sources and the data sources are public. If you found errors, please submit an issue or, better, a pull request.