Learn R Programming

⚠️There's a newer version (1.25.0) of this package.Take me there.

surveillance (version 1.21.0)

Temporal and Spatio-Temporal Modeling and Monitoring of Epidemic Phenomena

Description

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) . 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) . 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) and Meyer and Held (2014) . 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) . 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) . A recent overview of the implemented space-time modeling frameworks for epidemic phenomena is given by Meyer et al. (2017) .

Copy Link

Version

Install

install.packages('surveillance')

Monthly Downloads

1,593

Version

1.21.0

License

GPL-2

Maintainer

Sebastian Meyer

Last Published

March 15th, 2023

Functions in surveillance (1.21.0)

addFormattedXAxis

Formatted Time Axis for "sts" Objects
aggregate.disProg

Aggregate a disProg Object
algo.bayes

The Bayes System
algo.call

Query Transmission to Specified Surveillance Algorithm
abattoir

Abattoir Data
algo.cdc

The CDC Algorithm
R0

Computes reproduction numbers from fitted models
addSeason2formula

Function that adds a sine-/cosine formula to an existing formula.
LRCUSUM.runlength

Run length computation of a CUSUM detector
MMRcoverageDE

MMR coverage levels in the 16 states of Germany
algo.farrington.fitGLM

Fit Poisson GLM of the Farrington procedure for a single time point
algo.outbreakP

Semiparametric surveillance of outbreaks
algo.glrnb

Count Data Regression Charts
algo.compare

Comparison of Specified Surveillance Systems using Quality Values
algo.hmm

Hidden Markov Model (HMM) method
algo.cusum

CUSUM method
algo.farrington

Surveillance for Count Time Series Using the Classic Farrington Method
algo.farrington.threshold

Compute prediction interval for a new observation
algo.quality

Computation of Quality Values for a Surveillance System Result
algo.farrington.assign.weights

Assign weights to base counts
algo.rogerson

Modified CUSUM method as proposed by Rogerson and Yamada (2004)
arlCusum

Calculation of Average Run Length for discrete CUSUM schemes
algo.rki

The system used at the RKI
anscombe.residuals

Compute Anscombe Residuals
algo.summary

Summary Table Generation for Several Disease Chains
bestCombination

Partition of a number into two factors
all.equal

Test if Two Model Fits are (Nearly) Equal
algo.twins

Fit a Two-Component Epidemic Model using MCMC
animate

Generic animation of spatio-temporal objects
backprojNP

Non-parametric back-projection of incidence cases to exposure cases using a known incubation time as in Becker et al (1991)
boda

Bayesian Outbreak Detection Algorithm (BODA)
bodaDelay

Bayesian Outbreak Detection in the Presence of Reporting Delays
calibrationTest

Calibration Tests for Poisson or Negative Binomial Predictions
campyDE

Campylobacteriosis and Absolute Humidity in Germany 2002-2011
categoricalCUSUM

CUSUM detector for time-varying categorical time series
checkResidualProcess

Check the residual process of a fitted twinSIR or twinstim
coeflist

List Coefficients by Model Component
clapply

Conditional lapply
deleval

Surgical Failures Data
create.disProg

Creating an object of class disProg (DEPRECATED)
epidataCS_animate

Spatio-Temporal Animation of a Continuous-Time Continuous-Space Epidemic
epidataCS_aggregate

Conversion (aggregation) of "epidataCS" to "epidata" or "sts"
epidataCS

Continuous Space-Time Marked Point Patterns with Grid-Based Covariates
epidataCS_permute

Randomly Permute Time Points or Locations of "epidataCS"
epidataCS_plot

Plotting the Events of an Epidemic over Time and Space
epidataCS_update

Update method for "epidataCS"
earsC

Surveillance for a count data time series using the EARS C1, C2 or C3 method and its extensions
epidata

Continuous-Time SIR Event History of a Fixed Population
estimateGLRNbHook

Hook function for in-control mean estimation
epidata_summary

Summarizing an Epidemic
findK

Find Reference Value
findH

Find decision interval for given in-control ARL and reference value
epidata_plot

Plotting the Evolution of an Epidemic
epidata_animate

Spatio-Temporal Animation of an Epidemic
fanplot

Fan Plot of Forecast Distributions
fluBYBW

Influenza in Southern Germany
ha

Hepatitis A in Berlin
hagelloch

1861 Measles Epidemic in the City of Hagelloch, Germany
epidata_intersperse

Impute Blocks for Extra Stops in "epidata" Objects
discpoly

Polygonal Approximation of a Disc/Circle
hepatitisA

Hepatitis A in Germany
disProg2sts

Convert disProg object to sts and vice versa
hcl.colors

HCL-based Heat Colors from the colorspace Package
farringtonFlexible

Surveillance for Univariate Count Time Series Using an Improved Farrington Method
formatDate

Convert Dates to Character (Including Quarter Strings)
hhh4

Fitting HHH Models with Random Effects and Neighbourhood Structure
formatPval

Pretty p-Value Formatting
find.kh

Determine the k and h values in a standard normal setting
hhh4_W

Power-Law and Nonparametric Neighbourhood Weights for hhh4-Models
glm_epidataCS

Fit an Endemic-Only twinstim as a Poisson-glm
hhh4_internals

Internal Functions Dealing with hhh4 Models
hhh4_plot

Plots for Fitted hhh4-models
hhh4_W_utils

Extract Neighbourhood Weights from a Fitted hhh4 Model
hhh4_formula

Specify Formulae in a Random Effects HHH Model
hhh4_methods

Print, Summary and other Standard Methods for "hhh4" Objects
hhh4_simulate

Simulate "hhh4" Count Time Series
hhh4_predict

Predictions from a hhh4 Model
hhh4_simulate_scores

Proper Scoring Rules for Simulations from hhh4 Models
hhh4_simulate_plot

Plot Simulations from "hhh4" Models
hhh4_update

update a fitted "hhh4" model
intensityplot

Plot Paths of Point Process Intensities
hhh4_validation

Predictive Model Assessment for hhh4 Models
intersectPolyCircle

Intersection of a Polygonal and a Circular Domain
isoWeekYear

Find ISO Week and Year of Date Objects
isScalar

Checks if the Argument is Scalar
husO104Hosp

Hospitalization date for HUS cases of the STEC outbreak in Germany, 2011
influMen

Influenza and meningococcal infections in Germany, 2001-2006
inside.gpc.poly

Test Whether Points are Inside a "gpc.poly" Polygon
makeControl

Generate control Settings for an hhh4 Model
imdepi

Occurrence of Invasive Meningococcal Disease in Germany
imdepifit

Example twinstim Fit for the imdepi Data
marks

Import from package spatstat.geom
layout.labels

Layout Items for spplot
m1

RKI SurvStat Data
measles.weser

Measles in the Weser-Ems region of Lower Saxony, Germany, 2001-2002
linelist2sts

Convert Dates of Individual Case Reports into a Time Series of Counts
multiplicity

Import from package spatstat.geom
knox

Knox Test for Space-Time Interaction
magic.dim

Compute Suitable k1 x k2 Layout for Plotting
ks.plot.unif

Plot the ECDF of a uniform sample with Kolmogorov-Smirnov bounds
plot.atwins

Plots for Fitted algo.twins Models
pairedbinCUSUM

Paired binary CUSUM and its run-length computation
measlesDE

Measles in the 16 states of Germany
permutationTest

Monte Carlo Permutation Test for Paired Individual Scores
multiplicity.Spatial

Count Number of Instances of Points
rotaBB

Rotavirus cases in Brandenburg, Germany, during 2002-2013 stratified by 5 age categories
plot.survRes

Plot a survRes object
nbOrder

Determine Neighbourhood Order Matrix from Binary Adjacency Matrix
pit

Non-Randomized Version of the PIT Histogram (for Count Data)
meningo.age

Meningococcal infections in France 1985-1997
runifdisc

Sample Points Uniformly on a Disc
polyAtBorder

Indicate Polygons at the Border
primeFactors

Prime Number Factorization
momo

Danish 1994-2008 all-cause mortality data for eight age groups
poly2adjmat

Derive Adjacency Structure of "SpatialPolygons"
plapply

Verbose and Parallel lapply
refvalIdxByDate

Compute indices of reference value using Date class
nowcast

Adjust a univariate time series of counts for observed but-not-yet-reported events
residualsCT

Extract Cox-Snell-like Residuals of a Fitted Point Process
aggregate-methods

Aggregate an "sts" Object Over Time or Across Units
plot.disProg

Plot Observed Counts and Defined Outbreak States of a (Multivariate) Time Series
scores

Proper Scoring Rules for Poisson or Negative Binomial Predictions
print.algoQV

Print Quality Value Object
salmNewport

Salmonella Newport cases in Germany 2004-2013
scale.gpc.poly

Centering and Scaling a "gpc.poly" Polygon
stsXtrct

Subsetting "sts" Objects
salmonella.agona

Salmonella Agona cases in the UK 1990-1995
stsBP-class

Class "stsBP" -- a class inheriting from class sts which allows the user to store the results of back-projecting or nowcasting surveillance time series
sim.seasonalNoise

Generation of Background Noise for Simulated Timeseries
sts_animate

Animated Maps and Time Series of Disease Counts or Incidence
stK

Diggle et al (1995) K-function test for space-time clustering
shadar

Salmonella Hadar cases in Germany 2001-2006
sim.pointSource

Simulate Point-Source Epidemics
sts_observation

Create an sts object with a given observation date
ranef

Import from package nlme
stsNewport

Salmonella Newport cases in Germany 2001-2015
surveillance-defunct

Defunct Functions in Package surveillance
stsSlot-generics

Generic Functions to Access "sts" Slots
salmAllOnset

Salmonella cases in Germany 2001-2014 by data of symptoms onset
twinSIR_exData

Toy Data for twinSIR
stcd

Spatio-temporal cluster detection
surveillance-package

surveillance: tools:::Rd_package_title("surveillance")
sts-class

Class "sts" -- surveillance time series
sts_creation

Simulate Count Time Series with Outbreaks
sts_ggplot

Time-Series Plots for "sts" Objects Using ggplot2
twinSIR_methods

Print, Summary and Extraction Methods for "twinSIR" Objects
twinSIR_intensityplot

Plotting Paths of Infection Intensities for twinSIR Models
tidy.sts

Convert an "sts" Object to a Data Frame in Long (Tidy) Format
twinSIR_profile

Profile Likelihood Computation and Confidence Intervals
twinSIR

Fit an Additive-Multiplicative Intensity Model for SIR Data
salmHospitalized

Hospitalized Salmonella cases in Germany 2004-2014
twinSIR_cox

Identify Endemic Components in an Intensity Model
stsNC-class

Class "stsNC" -- a class inheriting from class sts which allows the user to store the results of back-projecting surveillance time series
stsNClist_animate

Animate a sequence of nowcasts
stsplot

Plot Methods for Surveillance Time-Series Objects
stsplot_space

Map of Disease Counts/Incidence accumulated over a Given Period
stsplot_spacetime

Animated Map of Disease Incidence (DEPRECATED)
twinSIR_simulation

Simulation of Epidemic Data
twinstim_epitest

Permutation Test for Space-Time Interaction in "twinstim"
twinstim_siaf

Spatial Interaction Function Objects
twinstim_profile

Profile Likelihood Computation and Confidence Intervals for twinstim objects
twinstim

Fit a Two-Component Spatio-Temporal Point Process Model
twinstim_plot

Plot methods for fitted twinstim's
twinstim_methods

Print, Summary and Extraction Methods for "twinstim" Objects
twinstim_iaf

Temporal and Spatial Interaction Functions for twinstim
twinstim_tiaf

Temporal Interaction Function Objects
twinstim_simulation

Simulation of a Self-Exciting Spatio-Temporal Point Process
unionSpatialPolygons

Compute the Unary Union of "SpatialPolygons"
twinstim_step

Stepwise Model Selection by AIC
twinstim_update

update-method for "twinstim"
xtable.algoQV

Xtable quality value object
wrap.algo

Multivariate Surveillance through independent univariate algorithms
untie

Randomly Break Ties in Data
zetaweights

Power-Law Weights According to Neighbourhood Order
stsplot_time

Time-Series Plots for "sts" Objects
toLatex.sts

toLatex-Method for "sts" Objects
surveillance.options

Options of the surveillance Package
twinstim_intensity

Plotting Intensities of Infection over Time or Space
twinstim_iafplot

Plot the Spatial or Temporal Interaction Function of a twimstim
siaf.simulatePC

Simulation from an Isotropic Spatial Kernel via Polar Coordinates
twinstim_simEndemicEvents

Quick Simulation from an Endemic-Only twinstim