Skip to content

Optimised estimates of reproduction numbers over time, which extract more information from an incidence curve than many conventional approaches

Notifications You must be signed in to change notification settings

krosenfeld-IDM/EpiFilter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EpiFilter

Maximally informed, mean square error optimised estimates of reproduction numbers (R) over time.

Uses Bayesian recursive filtering and smoothing to maximise the information extracted from the incidence data used. Takes a forward-backward approach and provides estimates that combine advantages of EpiEstim and the Wallinga-Teunis method. Method is exact (and optimal given a grid over R) and deterministic (produces the same answer on the same data).

For full details see: Parag KV (2020) “Improved estimation of time-varying reproduction numbers at low case incidence and between epidemic waves” medRxiv 2020.09.14.20194589.

Here we provide Matlab and R code to implement the main methods described in the text.

Main functions: epiFilter (or epiFilterSm) performs forward filtering to generate causal R estimates; epiSmooth performs backward smoothing to generate R estimates that use all possible information and recursPredict provides one-step-ahead predictions.

Notes on usage:

  1. Incidence curve needs to start with a non-zero value
  2. Currently only uses gamma serial interval distributions but can be generalised
  1. Fit of the filtered one-step-ahead predictions gives a measure of model adequacy

About

Optimised estimates of reproduction numbers over time, which extract more information from an incidence curve than many conventional approaches

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MATLAB 61.4%
  • R 15.4%
  • PostScript 15.1%
  • Python 6.6%
  • C 1.5%