Skip to content

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

License

Notifications You must be signed in to change notification settings

kpzoo/EpiFilter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 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” PLoS Comput Biol 2021; 17(9): e1009347. https://doi.org/10.1371/journal.pcbi.1009347.

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
  3. Fit of the filtered one-step-ahead predictions gives a measure of model adequacy

See ReadMe in New Zealand branch for extensions to the method for local cases and probabilities in elimination described in Parag KV, Cowling BJ and Donnelly CA. (2021) Deciphering early-warning signals of SARS-CoV-2 elimination and resurgence from limited data at multiple scales. J. R. Soc. Interface. 18, 20210569. http://doi.org/10.1098/rsif.2021.0569

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published