MyNixOS website logo
Description

Temporal and Spatio-Temporal Modeling and Monitoring of Epidemic Phenomena.

Statistical methods for the modeling and monitoring of time series of counts, proportions and categorical data, as well as for the modeling of continuous-time point processes of epidemic phenomena. The monitoring methods focus on aberration detection in count data time series from public health surveillance of communicable diseases, but applications could just as well originate from environmetrics, reliability engineering, econometrics, or social sciences. The package implements many typical outbreak detection procedures such as the (improved) Farrington algorithm, or the negative binomial GLR-CUSUM method of Hoehle and Paul (2008) <doi:10.1016/j.csda.2008.02.015>. A novel CUSUM approach combining logistic and multinomial logistic modeling is also included. The package contains several real-world data sets, the ability to simulate outbreak data, and to visualize the results of the monitoring in a temporal, spatial or spatio-temporal fashion. A recent overview of the available monitoring procedures is given by Salmon et al. (2016) <doi:10.18637/jss.v070.i10>. For the retrospective analysis of epidemic spread, the package provides three endemic-epidemic modeling frameworks with tools for visualization, likelihood inference, and simulation. hhh4() estimates models for (multivariate) count time series following Paul and Held (2011) <doi:10.1002/sim.4177> and Meyer and Held (2014) <doi:10.1214/14-AOAS743>. twinSIR() models the susceptible-infectious-recovered (SIR) event history of a fixed population, e.g, epidemics across farms or networks, as a multivariate point process as proposed by Hoehle (2009) <doi:10.1002/bimj.200900050>. twinstim() estimates self-exciting point process models for a spatio-temporal point pattern of infective events, e.g., time-stamped geo-referenced surveillance data, as proposed by Meyer et al. (2012) <doi:10.1111/j.1541-0420.2011.01684.x>. A recent overview of the implemented space-time modeling frameworks for epidemic phenomena is given by Meyer et al. (2017) <doi:10.18637/jss.v077.i11>.

surveillance: Temporal and Spatio-Temporal Modeling and Monitoring of Epidemic Phenomena

The open-source R package surveillance implements statistical methods for the modeling and monitoring of epidemic phenomena based on (infectious disease) surveillance data. This includes time series of counts, proportions and categorical data as well as spatio-temporal point processes. Potential users are biostatisticians, epidemiologists and others working in, e.g., applied infectious disease epidemiology. However, applications could just as well originate from environmetrics, reliability engineering, econometrics or the social sciences.

Prospective outbreak detection

Salmon et al. (2016) provide an overall guide to the monitoring capabilities of surveillance. The paper is available as vignette("monitoringCounts") with the package. Further descriptions can be found in a book chapter by Höhle and Mazick (2010, preprint), and -- slightly outdated -- Höhle (2007) or vignette("surveillance").

  • Aberration detection in count data time series, e.g., farringtonFlexible().

  • Online change-point detection in categorical time series, e.g., categoricalCUSUM().
    A Markov Chain approximation for computing the run-length distribution of the proposed likelihood ratio CUSUMs is available as function LRCUSUM.runlength().

See the online reference index for the complete list of algorithms.

Modeling reporting delays

  • Backprojection methods: backprojNP()

  • Adjusting for occurred-but-not-yet-reported events: nowcast(), bodaDelay()

Endemic-epidemic modeling

Meyer et al. (2017) provide a guide to the spatio-temporal modeling capabilities of surveillance. These so-called endemic-epidemic models have proven useful in a wide range of applications, also beyond epidemiology. A list of corresponding publications is maintained at https://surveillance.R-forge.R-project.org/applications_EE.html.

twinstim()

  • models a spatio-temporal point pattern of infective events
  • is described in vignette("twinstim")
  • needs data of class "epidataCS", which holds the observed events (with covariates) and exogenous covariates on a space-time grid (for the endemic/background component)
  • features a model-based epitest() for space-time interaction

twinSIR()

  • models the susceptible-infectious-recovered (SIR) event history of a fixed population
  • is described in vignette("twinSIR")
  • needs data of class "epidata"

hhh4()

  • models a (multivariate) time series of infectious disease counts
  • is described in vignette("hhh4_spacetime") for areal time series, and more generally in vignette("hhh4"), including the univariate case
  • needs data of class "sts" (see below)

Data class "sts"

The S4 class "sts" (surveillance time series), created via sts() or linelist2sts(), represents (multivariate) time series of counts. For areal time series, the class can also capture population fractions, a map, and a weight matrix.

For evaluation purposes, the package contains several datasets derived from the SurvStat@RKI database maintained by the Robert Koch Institute in Germany. See the online reference index for the complete list of datasets.

Installation

The stable release version of surveillance is hosted on the Comprehensive R Archive Network (CRAN) at https://CRAN.R-project.org/package=surveillance and can be installed via

install.packages("surveillance")

The development version of surveillance is hosted on R-Forge at https://R-Forge.R-project.org/projects/surveillance/ in a Subversion (SVN) repository. It can be installed via

install.packages("surveillance", repos = "https://R-Forge.R-project.org")

Alternatively, a development build can be installed from the R-universe mirror of R-Forge.

Feedback

Contributions are welcome! Please report bugs via e-mail to maintainer("surveillance").

Note that (large) new features are unlikely to be included in surveillance. Some extensions have already been developed in separate packages, for example hhh4contacts, HIDDA.forecasting, hhh4addon, and hhh4ZI.

Funding

The authors acknowledge financial support from the following institutions:

License

The surveillance package is free and open-source software, and you are welcome to redistribute it under the terms of the GNU General Public License, version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.

Metadata

Version

1.24.1

License

Unknown

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows