Giter VIP home page Giter VIP logo

epyestim's Introduction

epyestim

Introduction

epyestim estimates the effective reproduction number from time series of reported case numbers of epidemics. It is a Python reimplementation of the method outlined by Huisman et al. [1], making use of the method by Cori et al. [2] to estimate the reproduction number R from infection data, available in the R package EpiEstim [3].

The main steps for estimation of the effective reproduction number are:

  • Bootstrapping the series of reported case numbers
  • Smoothing using a LOWESS filter
  • MLE of the infection incidence time series using an adaptation of the Richardson-Lucy deconvolution algorithm.
  • Bayesian estimation of the effective reproduction number using the method of Cori et al. [2]

Aggregate estimates for the reproduction number are obtained by bootstrap aggregation (bagging).

The user can choose to output either time-varying estimates or piecewise constant estimates on fixed arbitrary time intervals.

How to install epyestim

pip install epyestim

How to use epyestim

Basic usage of the epyestim package applied to COVID-19 data is explained in the Jupyter tutorial notebook.

The core functions relevant for users are:

  • epyestim.bagging_r for the complete estimation process outlined above
  • epyestim.covid19.r_covid for the same function with default parameters for COVID-19
  • epyestim.estimate_r.estimate_r for the R estimation from infection numbers, based on the EpiEstim package

Authors

How to contribute

Error reports and suggestions for improvements via GitHub issues are very welcome.

References

[1] Jana S. Huisman, Jeremie Scire, Daniel Angst, Richard Neher, Sebastian Bonhoeffer, Tanja Stadler: A method to monitor the effective reproductive number of SARS-CoV-2 https://ibz-shiny.ethz.ch/covid-19-re/methods.pdf

[2] Anne Cori, Neil M. Ferguson, Christophe Fraser, Simon Cauchemez: A New Framework and Software to Estimate Time-Varying Reproduction Numbers During Epidemics, American Journal of Epidemiology, Volume 178, Issue 9, 1 November 2013, Pages 1505โ€“1512, https://doi.org/10.1093/aje/kwt133

[3] EpiEstim CRAN package: https://cran.r-project.org/web/packages/EpiEstim/index.html

epyestim's People

Contributors

lo-hfk avatar

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.