Skip to content

adamkucharski/rules-of-contagion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rules-of-contagion

This repository contains code and data to accompany The Rules of Contagion: Why Things Spread - and Why They Stop by Adam Kucharski.

If you use any of the code/analysis under the GNU license, please cite 'Kucharski AJ, The Rules of Contagion: Why Things Spread - and Why They Stop, Wellcome Collection/Profile Books, 2020' as well as any relevant data sources (listed below).

Guide to files

The main script to reproduce the analysis is in scripts/main_plot_figures.R. This script calls the following files:

R/plotting_functions.R - Loads and plots data

R/functions_basic_sir.R - Functions for SIR model

R/set_plot.R - Customised plot settings

As you'd expect, data is the the data folder and plots are output in the plots folder.

References for datasets

Chapter 1

Chapter 2

Chapter 3

Chapter 4

Chapter 5

About

Code and data to accompany The Rules of Contagion

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages