Skip to content

surveillance

1.26.0

Temporal and Spatio-Temporal Modeling and Monitoring of Epidemic Phenomena

4packages depend
23.4Kdownloads / year
35.8%test coverage
9/13checks pass

Overview

About
Maintained by Sebastian MeyerFirst published 2005-11-1890 releasesCRAN page ↗

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.

Install

Health

CRAN checks
4NOTE9OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
Slowest check: 14.5 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.07
35.8%
Coverage · measured lines
52%
Documentation · exports
11
Dependencies · direct
Check history
  • NOTE2026-07-16
    11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-07-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-19
    10 OK · 0 NOTE · 1 WARNING · 2 ERROR · 0 FAILURE
  • WARNING2026-06-14
    12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-13
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 5 earlier snapshots
  • ERROR2026-06-04
    11 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE
  • OK2026-04-29
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-04-28
    12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 662 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
86%
Return-value docs
84%
References docs
10%

Downloads

23.4K
CRAN downloads in the past year
Rank #3,339 · ~64/day · ~2K/mo
Daily download trend is not available in this view yet.
1.4K30 days
3.6K90 days
23.4K1 year
Compare downloads with other packages →
Also on642 r2u39 autocran7.7K conda_forge104 c2d4u

Dependencies

Declared dependencies
30 external dependencies (excludes base and recommended)
Depends (7)
R >= 3.6.0methodsgrDevicesgraphicsstatsutilssp
Imports (5)
polyCubMASSMatrixnlmespatstat.geom
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
4direct
0indirect

Code & Tests

Code Composition
R 31,766 (65%)Rd 7,978 (16%)Vignettes 5,988 (12%)C 1,869 (4%)Other 904 (2%)C++ 353 (1%)
Code characteristics
Object systems
S3151S4 class3S4 generic30S4 method28
Cyclomatic complexity
3.0 median / 238 max
Test cases
138 / 0.07 per code line

Test coverage

Line coverage

36%

Expression

33.2%

Tests / Examples

35.8% / 69% ex

Functions

613 188 exported

Complexity

6.7 avg / 238 max

Call network

613 nodes / 600 edges

Loading call graph…

Lowest coverage

613 functions
FunctionCycloCoverage
LRCUSUM.runlength exp110%
R0 exp10%
addFormattedXAxis exp80%
algo.bayes exp60%
algo.bayes1 exp10%
algo.bayes2 exp10%

Datasets

Bundled datasets · 3
NameClassRows × ColsAlso ships in
MMRcoverageDEdata.frame19 × 5
campyDEdata.frame522 × 12
husO104Hospdata.frame630 × 2

3 internal objects are bundled for the package's own use and not listed here.

People & History

People (19)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Author, Thesis advisor
Contributors (16)
Contributor · added in 1.25.0
Contributor
Contributor
Contributor, Thesis advisor
Contributor
Contributor
Contributor
Contributor · added in 1.23.1
Show 8 more contributors
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Listed in earlier versions (1)
no longer listed · 1.20.3 to 1.24.1
Package Timeline

90 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 1.26.0Latest
    2026-07-02 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.25.0
    2025-06-25 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.24.1
    2024-11-05 · diff ↗
  • 1.24.0
    2024-10-01 · diff ↗
  • 1.23.1
    2024-09-02 · diff ↗
  • 1.23.0
    2024-05-04 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.22.1
    2023-11-28 · diff ↗
  • 1.22.0
    2023-10-30 · diff ↗
  • 1.21.1
    2023-05-19 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.21.0
    2023-03-15 · diff ↗
  • 1.20.3
    2022-11-16 · diff ↗
  • 1.20.1
    2022-07-19 · diff ↗
Show 102 earlier events
  • R
    R 4.2.0 released · 2022-04-22
  • 1.20.0
    2022-02-16 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.19.1
    2021-03-31 · diff ↗
  • 1.19.0
    2021-01-30 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.18.0
    2020-03-19 · diff ↗
  • 1.17.3
    2019-12-16 · diff ↗
  • 1.17.2
    2019-11-12 · diff ↗
  • 1.17.1
    2019-09-13 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.17.0
    2019-02-22 · diff ↗
  • 1.16.2
    2018-07-25 · diff ↗
  • 1.16.1
    2018-05-29 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 1.16.0
    2018-01-23 · diff ↗
  • 1.15.0
    2017-10-06 · diff ↗
  • 1.14.0
    2017-06-30 · diff ↗
  • 1.13.1
    2017-04-29 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 1.13.0
    2016-12-20 · diff ↗
  • 1.12.2
    2016-11-17 · diff ↗
  • 1.12.1
    2016-05-18 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 1.12.0
    2016-04-03 · diff ↗
  • 1.11.0
    2016-02-09 · diff ↗
  • 1.10-0
    2015-11-06 · diff ↗
  • 1.9-1
    2015-06-12 · diff ↗
  • 1.9-0
    2015-06-11 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • 1.8-3
    2015-01-06 · diff ↗
  • 1.8-2
    2014-12-20 · diff ↗
  • 1.8-1
    2014-10-30 · diff ↗
  • 1.8-0
    2014-06-17 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 3.0.3
    2013-11-19 · diff ↗
  • 1.7-0-dup
    2013-11-19 · diff ↗
  • 1.7-0
    2013-11-19 · diff ↗
  • 1.6-0
    2013-09-09 · diff ↗
  • 3.0.2
    2013-09-03 · diff ↗
  • 1.6-0-dup
    2013-09-03 · diff ↗
  • 1.5-4
    2013-04-21 · diff ↗
  • 3.0.1
    2013-04-19 · diff ↗
  • 1.5-4-dup
    2013-04-19 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 1.5-2
    2013-03-19 · diff ↗
  • 3.0.0
    2013-03-15 · diff ↗
  • 1.5-2-dup
    2013-03-15 · diff ↗
  • 1.5-1
    2012-12-14 · diff ↗
  • 2.15.3
    2012-12-12 · diff ↗
  • 1.5-1-dup
    2012-12-12 · diff ↗
  • 1.5-0-dup
    2012-12-12 · diff ↗
  • 1.5-0
    2012-12-12 · diff ↗
  • 1.4-2
    2012-08-20 · diff ↗
  • 2.15.2
    2012-08-17 · diff ↗
  • 1.4-2-dup
    2012-08-17 · diff ↗
  • 1.4-1
    2012-07-26 · diff ↗
  • 1.4-1-dup
    2012-07-25 · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
  • 1.2-1
    2012-01-15 · diff ↗
  • R
    R 2.14.0 released · 2011-10-31
  • R
    R 2.13.0 released · 2011-04-13
  • R
    R 2.12.0 released · 2010-10-15
  • 2.11.1
    2010-05-25 · diff ↗
  • 1.2-1-dup
    2010-05-25 · diff ↗
  • 1.1-6
    2010-05-25 · diff ↗
  • 1.1-6-dup
    2010-05-21 · diff ↗
  • R
    R 2.11.0 released · 2010-04-22
  • R
    R 2.10.0 released · 2009-10-26
  • 1.1-2
    2009-10-15 · diff ↗
  • 2.10.0
    2009-10-14 · diff ↗
  • 1.1-2-dup
    2009-10-14 · diff ↗
  • 2.9.1
    2009-05-03 · diff ↗
  • 1.0-2-dup
    2009-05-03 · diff ↗
  • R
    R 2.9.0 released · 2009-04-17
  • 1.0-2
    2009-03-06 · diff ↗
  • R
    R 2.8.0 released · 2008-10-20
  • R
    R 2.7.0 released · 2008-04-22
  • 2.6.2
    2008-01-21 · diff ↗
  • 0.9-9-dup
    2008-01-21 · diff ↗
  • 0.9-9
    2008-01-21 · diff ↗
  • 0.9-8
    2008-01-19 · diff ↗
  • 0.9-7
    2007-11-18 · diff ↗
  • 2.6.1
    2007-11-17 · diff ↗
  • 0.9-8-dup
    2007-11-17 · diff ↗
  • 0.9-7-dup
    2007-11-17 · diff ↗
  • R
    R 2.6.0 released · 2007-10-03
  • 2.5.1
    2007-06-25 · diff ↗
  • 0.9-6-dup
    2007-06-25 · diff ↗
  • 0.9-6
    2007-06-25 · diff ↗
  • R
    R 2.5.0 released · 2007-04-24
  • R
    R 2.4.0 released · 2006-10-03
  • 2.4.0
    2006-09-05 · diff ↗
  • 0.9-2-dup
    2006-09-05 · diff ↗
  • 0.9-2
    2006-09-05 · diff ↗
  • R
    R 2.3.0 released · 2006-04-24
  • 2.2.1
    2005-11-21 · diff ↗
  • 0.9-1-dup
    2005-11-21 · diff ↗
  • 0.9-1
    2005-11-21 · diff ↗
  • 0.9-dup
    2005-11-18 · diff ↗
  • 0.9
    2005-11-18
  • R
    R 2.2.0 released · 2005-10-06

Package metadata

First published
2005-11-18
Total releases
90 / 21 yrs
License
GPL-2 OSI
Additional repositories
inla.r-inla-download.org
Minimum R
≥ 3.6.0
Bundled data
812 KB / 41 files
Download size
3.7 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →