• Stars
    star
    641
  • Rank 70,212 (Top 2 %)
  • Language
    R
  • Created over 4 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Source code and data for The Economist's covid-19 excess deaths tracker

The Economist's tracker for covid-19 excess deaths

update

This repository contains the data behind The Economist’s tracker for covid-19 excess deaths, which updates daily, and the code that we have used to clean, analyse and present the numbers.

Scripts, sources and output data

Our tracker uses two R scripts to calculate excess deaths in each country:

  • cleaning_script.R: this imports raw data about all-cause mortality and official covid-19 death tolls. We take most of our all-cause mortality figures from the World Mortality Dataset (WMD), which is maintained by Ariel Karlinsky and Dmitry Kobak. The WMD draws on various national registry offices and statistical bureaus, as well as the Human Mortality Database, a similar project. We take official covid-19 death tolls for each country from Our World In Data, which in turn sources them from Johns Hopkins University. Finally, we take data for US states from the CDC and USA Facts. From these sources, we export a weekly or monthly historical time series of total_deaths and official covid_deaths going back to 2015 (or the earliest available year). If the source that we use for total deaths has also modelled and provided a baseline for expected_deaths, we include that too. The files are exported to /output-data/historical-deaths/.

  • excess_deaths_script.R: this imports the time series files from /output-data/historical-deaths/, and calculates the weekly or monthly expected_deaths for each country (unless a modelled baseline has already been provided). Our own modelled baselines fit a linear trend for year, to account for long-term increases or decreases in mortality, and a fixed effect for each week or month up to February 2020. We have exported these models to /output-data/expected-deaths-models/. We then use these baselines to calculate excess_deaths, and export the files to /output-data/excess-deaths/.

There is a third R script that summarises the data for some graphics in the article:

  • interactive_script.R: this imports the files for excess deaths for a list of countries and creates the data for the small multiple chart and the table featured in the article. The files are exported to /output-data/interactive/.

In October 2021, we moved all weekly data to the ISO standard (meaning weeks begin Monday and end Sunday). This simplifies analysis using many countries at once. For those who prefer data respecting non-ISO week beginning and endings, please use /output-data/alternative-exports-by-non-iso-week/.

Historical versions and sources

This tracker has gone through several iterations since it was launched in April 2020, at which point it was the first database to compare excess mortality with official covid death tolls. As of July 2021 we are now largely relying on all-cause mortality data collected by Ariel Karlinsky and Dmitry Kobak for the WMD. But throughout the development of the tracker we have drawn on many other sources, including:

Registro Civil (Bolivia); Vital Strategies; Office for National Statistics; Northern Ireland Statistics and Research Agency; National Records of Scotland; Registro Civil (Chile); Registro Civil (Ecuador); Institut National de la Statistique et des Études Économiques; Santé Publique France; Provinsi DKI Jakarta; Istituto Nazionale di Statistica; Dipartimento della Protezione Civile; Secretaría de Salud (Mexico); Ministerio de Salud (Peru); Data Science Research Peru; Departamento Administrativo Nacional de Estadística (Colombia); South African Medical Research Council; Instituto de Salud Carlos III; Ministerio de Sanidad (Spain); Datadista; Istanbul Buyuksehir Belediyesi; New York City Health.

Authors

This data has been collected, cleaned and analysed by James Tozer, Martín González, and, since the fall of 2021, Sondre Ulvund Solstad. We are grateful to Lasse Skafte Vestergaard for providing data from EuroMOMO; to Oğuz Işık for providing data from Istanbul; to René van der Veer for providing code for the Netherlands; to Laurianne Despeghel and Mario Romero Zavalato for providing data from Mexico City; to Karen Gil for providing data from Bolivia; to Thais Carrança, Helio Gurovitz and Diogo Melo for providing data from Brazilian cities; and to Renato Teixeira and Vital Strategies for providing data from the whole of Brazil.

The Financial Times and the New York Times have both published similar analyses of excess mortality.

If you have any suggestions, please email [email protected].

Licence

This software is published by The Economist under the MIT licence. The data generated by The Economist are available under the Creative Commons Attribution 4.0 International License.

The data and files that we have generated from official sources are freely available for public use, as long as The Economist is cited as a source.

Suggested citation

The Economist, 2020. Tracking covid-19 excess deaths across countries. [online] The Economist. Available at: <https://www.economist.com/graphic-detail/coronavirus-excess-deaths-estimates> [Accessed ---].

(See also our citation file)

More Repositories

1

big-mac-data

Data and methodology for the Big Mac index
Jupyter Notebook
1,581
star
2

us-potus-model

Code for a dynamic multilevel Bayesian model to predict US presidential elections. Written in R and Stan.
HTML
1,231
star
3

covid-19-the-economist-global-excess-deaths-model

The Economist's model to estimate excess deaths to the covid-19 pandemic
R
459
star
4

graphic-detail-data

Data and code behind the Economist's Graphic Detail section.
Jupyter Notebook
398
star
5

the-economist-war-fire-model

Source code and data for The Economist's Ukraine war-fire model
R
234
star
6

the-economist-gdp-per-hour-estimates

Code and data for Graphic detail on GDP and productivity
R
81
star
7

2022-france-election-model

R
74
star
8

covid-19-risk-estimator

Diagnostic code mappings and replication code for the covid-19-risk-estimator
Jupyter Notebook
35
star
9

oecd_regional_inequality

Regional inequality data and analysis
34
star
10

normalcy-index-data

The Economist's "normalcy index" data repository
20
star
11

the-economist-conquests

Source code and data for "Vladimir Putin is dragging the world back to a bloodier time"
R
14
star
12

banana-index-data

Data and methodology for the Banana index
9
star
13

covid-19-italy-herd-immunity-GD

R
8
star
14

covid-19-us-seroprevalence-model

The Economist's seroprevalence model estimating American weekly covid-19 infections based on a combination of death by age and sex, IFR by age and sex, and confirmed cases.
R
8
star
15

fires-in-sudan

Code and data to analyse fire events in Sudan
R
7
star
16

2021-germany-election-model-PUBLIC

An election-forecasting model for the German federal parliament
R
7
star
17

Grim-Tallies

Replication data and code for "Briefing: Grim Tallies", including The Economist's estimate of global infections up to September 15, 2020.
R
6
star
18

dark

Chrome extension to read economist.com in dark mode
CSS
3
star
19

covid-19-age-adjusted-ifr

Estimated IFR based on country's population age distributions
R
3
star
20

nutrition

The Economist's modelling of nutritional outcomes, informed in part by demographic projections
R
3
star
21

the-economist-nationalism-and-corruption

R
3
star
22

us-midterms-2022-change-data

2
star
23

GraphicDetail_WagesAndPlaces

From the graphic detail 15.01.22
R
2
star
24

covid-19-wuhan-excess-deaths

Estimates of excess deaths in Wuhan for The Economist "Daily Chart"
R
2
star
25

britain-mrp-2024-estimates

Estimates of 2024 voting intention by constituency from our MRP model with We Think
2
star
26

GraphicDetail_GlobalGrain

Data and code for the Graphic Detail dated 25.06.22
R
1
star
27

moving_democrats

HTML
1
star
28

vbm-turnout-analysis

R
1
star
29

2022-iran-protests

Replication data for "Protest movements as deadly as Iran’s often end in revolution or civil war"
R
1
star
30

malaria-eradication-estimates

A repository containing The Economist's estimates of effects of a successful malaria eradication campaign.
R
1
star
31

HPV

R
1
star
32

covid-19-uk-seroprevalence-model

The Economist's seroprevalence model estimating weekly covid-19 infections in England and Wales based on a combination of death by age and sex, IFR by age and sex, and confirmed cases.
R
1
star