Coder Social home page Coder Social logo

derekocallaghan / ireland_covid_modelling Goto Github PK

View Code? Open in Web Editor NEW

This project forked from obrienjoey/ireland_covid_modelling

0.0 1.0 0.0 25.94 MB

Code associated with A population-level SEIR model for COVID-19 scenarios (updated) by James P. Gleeson, Thomas Brendan Murphy, Joseph D. O'Brien, and David J. P. O'Sullivan.

License: GNU General Public License v3.0

R 100.00%

ireland_covid_modelling's Introduction

ireland_covid_modelling

2/2/21 - Code associated with A population-level SEIR model for COVID-19 scenarios (updated) by James P. Gleeson, Thomas Brendan Murphy, Joseph D. O'Brien, and David J. P. O'Sullivan.

Using daily Covid-19 case data, the code fits a generalized additive model (GAM) via a Bayesian framework before running simulations of the population-level susceptible-exposed-infected-removed (SEIR) model that is used by the Irish Epidemiological Modelling Advisory Group (IEMAG) reporting to the National Public Health Emergency Team (NPHET).

There are three scripts which must be run in order

  1. 0_source.R - loads required libraries and defines the functions used throughout the analysis.
  2. 1_Bayesian_GAM_fits.R - fits the GAM to a provided dataframe of case date via a Bayesian framework before simulating 1000 realizations of the SEIR process using draws from the posterior distribution. These simulations are run for a specified number of days in the future to generate the future sizes of the compartments in the SEIR model, assuming that the reproduction number remains constant at the value given by parameter scenarioR0.
  3. 2_Bayesian_GAM_plots.R - returns the plots of the resulting time series.

The code runs a scenario from the date 11/11/2020, until a specified time in the future. The input data supplied is a daily time-series or the number of national cases up until that point.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.