/ex2021

Primary LanguageRGNU General Public License v2.0GPL-2.0

Life expectancy changes since COVID-19

github tag Zenodo Code DOI Zenodo life-table data DOI Zenodo figure and table data DOI

Introduction

This is a repository to accompany 'Life expectancy changes since COVID-19', forthcoming in Nature Human Behavior. The replication files for this paper include customised functionality written in the R statistical programming language.

Prerequisites

As a pre-requisite to running this locally, you will need a working installation of R with all of the necessary dependencies (see ./src/install_dependencies.R).

Running the Code

To run this code, do something like:

git clone https://github.com/jschoeley/ex2021.git

and then execute each of the scripts in ascending numeric order which will undertake sequential tasks like downloading and harmonizing data, running life table simulations, and outputting tables and visualizations. Output files are tagged with the same numeric prefix as the source file generating the file.

Structure

License

This work is free. You can redistribute it and/or modify it under the terms of the GNU Public license and subject to all prior terms and licenses imposed by the free, public data sources provided by the HMD-STMF, CoverAge-DB, UK-ONS, and US-CDC (i.e. the 'data originators'). The code comes without any warranty, to the extent permitted by applicable law.