| Literature DB >> 28957408 |
Alexander D Becker1, Bryan T Grenfell1,2,3.
Abstract
tsiR is an open source software package implemented in the R programming language designed to analyze infectious disease time-series data. The software extends a well-studied and widely-applied algorithm, the time-series Susceptible-Infected-Recovered (TSIR) model, to infer parameters from incidence data, such as contact seasonality, and to forward simulate the underlying mechanistic model. The tsiR package aggregates a number of different fitting features previously described in the literature in a user-friendly way, providing support for their broader adoption in infectious disease research. Also included in tsiR are a number of diagnostic tools to assess the fit of the TSIR model. This package should be useful for researchers analyzing incidence data for fully-immunizing infectious diseases.Entities:
Mesh:
Year: 2017 PMID: 28957408 PMCID: PMC5619791 DOI: 10.1371/journal.pone.0185528
Source DB: PubMed Journal: PLoS One ISSN: 1932-6203 Impact factor: 3.240
Fig 1Output results from the runtsir function for London.
Subplots A) and B) are the cumulative births against cumulative cases regression and estimated reporting rate, the C) and D) are the profiled from Z and then reconstructed S, E) is 26-point β with the α and mean β (indicated as ) estimate, and F) and G) are the data (blue) against 10 randomly chosen stochastic simulations (red) and the (inverse) data against mean of the simulations with confidence intervals.
Fig 2Northwich time-series data.
Dashed lines are the time points in which the forward simulation resets in the epidemics = ‘break’ argument for a threshold for three.
Fig 3The forward simulations for the Northwich time-series data under an epidemic-ahead fit using a threshold of three.
The color coding in the panels shown here are the same as in Fig 1.
Summary and description of the main functions in the tsiR package.
| Function | Description |
|---|---|
| tsiRdata | Interpolates (weekly) cases and (yearly) births and population vectors to the generation time of the disease |
| twentymeas | Named list of twenty biweekly (IP = 2) time-series from 1944-1964 England |
| plotdata | Plots the cases, births, and population time series |
| runtsir | Reconstructs susceptible dynamics, estimates parameters, and runs the forward simulation |
| plotres | Plots the fitted regressions, reporting, susceptible reconstruction, estimated parameters, and the fit diagnostics |
| plotcomp | Plots the data versus the simulations only |
| estpars | Reconstructs the susceptible dynamics and estimates parameters |
| maxthreshold | Optimizes the threshold parameter for sparse data using |
| mcmcestpars | Using MCMC, reconstructs susceptible dynamics and estimates parameters |
| mcmctsir | Using MCMC, reconstructs susceptible dynamics, estimates parameters, and runs the simulation |
| simulatetsir | Runs the forward simulation taking in the output from estpars or mcmcestpars |
| plotregression | Plots the cumulative cases and cumulative births regression |
| plotrho | Plots the inferred reporting rate |
| plotsbar | Plots the inferred |
| plotbeta | Plots the inferred |
| plotforward | Plots the data against the mean simulation with confidence intervals |