Time Series Models for Disease Surveillance
Overview
Fits time trend models for routine disease surveillance tasks and returns probability distributions for a variety of quantities of interest, including age-standardized rates, period and cumulative percent change, and measures of health inequality. The models are appropriate for count data such as disease incidence and mortality data, employing a Poisson or binomial likelihood and the first-difference (random-walk) prior for unknown risk. Optionally add a covariance matrix for multiple, correlated time series models. Inference is completed using Markov chain Monte Carlo via the Stan modeling language. References: Donegan, Hughes, and Lee (2022) doi:10.2196/34589; Stan Development Team (2021) https://mc-stan.org; Theil (1972, ISBN:0-444-10378-3).
- Example code in the documentation has been improved
- The package vignettes have been re-written
- The
standardizefunction is now slightly easier to use: the standard population sizes provided bydata(standard)can be passed to thestandardizefunction without removing any unused age groups. Previously, it was necessary to subset thestandarddata before usingstandardize.
Another short illustration of cancer data analysis with surveil is provided here: <https://connordonegan.github.io/surveil-paper/>
From NEWS.md in the release
Install
Health
NOTEdependencies in R coder-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Namespaces in Imports field not imported from: ‘RcppParallel’ ‘rstantools’ All declared Imports should be used.
- NOTE11 OK, 2 NOTE2026-07-29
- ERROR10 OK, 2 NOTE, 1 ERROR2026-07-27
- NOTE11 OK, 2 NOTE2026-06-09
- ERROR10 OK, 2 NOTE, 1 ERROR2026-06-08
- NOTE9 OK, 5 NOTE2026-04-22
Show 2 earlier changesHide 2 earlier changes
- ERROR8 OK, 5 NOTE, 1 ERROR2026-04-18
- NOTE9 OK, 5 NOTE2026-03-10
Documentation
- Help pages
- 16includes a package overview page
- Examples that run
- 100%11 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 99%
- Return-value docs
- 100%
- Help pages citing references
- 6%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 12
Stars over time
Forks over time
Releases over time
PRs over time
4 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/connordonegan/surveil on 2026-10-21.
GitHub Pages site last deployed 2024-07-08
pkgdown site last built 2024-07-08
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.3.0Latest
- RR 4.4.0 released · 2024-04-24
- 0.2.22023-10-03 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.2.12022-08-22 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.2.02022-04-03 · diff ↗
- 0.1.12022-01-03 · diff ↗
- 0.1.02021-11-11
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2021-11-11
- Total releases
- 6 / 5 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 5.7 KB / 3 files
- Download size
- 626 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("surveil")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.2196/34589.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.