Learn R Programming

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

surveillance (version 1.7-0)

Temporal and Spatio-Temporal Modeling and Monitoring of Epidemic Phenomena

Description

A package implementing statistical methods for the modeling and change-point detection in time series of counts, proportions and categorical data, as well as for the modeling of continuous-time epidemic phenomena, e.g. discrete-space setups such as the spatially enriched Susceptible-Exposed-Infectious-Recovered (SEIR) models for surveillance data, or continuous-space point process data such as the occurrence of disease or earthquakes. Main focus is on outbreak detection in count data time series originating from public health surveillance of infectious diseases, but applications could just as well originate from environmetrics, reliability engineering, econometrics or social sciences. Currently the package contains implementations of typical outbreak detection procedures such as Stroup et. al (1989), Farrington et al (1996), Rossi et al (1999), Rogerson and Yamada (2001), a Bayesian approach, negative binomial CUSUM methods and a detector based on generalized likelihood ratios. Furthermore, inference methods for the retrospective infectious disease model in Held et al (2005), Held et al (2006), Paul et al (2008) and Paul and Held (2011) are provided. A novel CUSUM approach combining logistic and multinomial logistic modelling is also included. Continuous self-exciting spatio-temporal point processes are modeled through additive-multiplicative conditional intensities as described in H�hle (2009) ("twinSIR", discrete space) and Meyer et al (2012) ("twinstim", continuous space). The package contains several real-world datasets, the ability to simulate outbreak data, visualize the results of the monitoring in temporal, spatial or spatio-temporal fashion.

Copy Link

Version

Install

install.packages('surveillance')

Monthly Downloads

1,741

Version

1.7-0

License

GPL-2

Maintainer

Michael Hhle

Last Published

November 19th, 2013

Functions in surveillance (1.7-0)

LRCUSUM.runlength

Run length computation of a CUSUM detector
primeFactors

Prime number factorization
aggregate-methods

Aggregate the the series of an sts object
algo.glrpois

Poisson regression charts
anscombe.residuals

Compute Anscombe residuals
stsSlot-generics

Generic functions to access "sts" slots
estimateGLRPoisHook

Hook function for in-control mean estimation
powerlaw

Power-Law Neighbourhood Weights for hhh4 Models
print.algoQV

Print quality value object
deleval

Surgical failures data
meanResponse

Calculate mean response needed in algo.hhh
algo.quality

Computation of Quality Values for a Surveillance System Result
pairedbinCUSUM

Paired binary CUSUM and its run-length computation
twinSIR_simulation

Simulation of Epidemic Data
algo.bayes

The Bayes System
twinstim_epidataCS_plot

Plotting the Events of an Epidemic over Time and Space
estimateGLRNbHook

Hook function for in-control mean estimation
intersectPolyCircle

Intersection of a Polygonal and a Circular Domain
predict.ah

Predictions from a HHH model
polyAtBorder

Indicate Polygons at the Border
sumNeighbours

Calculates the sum of counts of adjacent areas
twinstim_methods

Print, Summary and Extraction Methods for "twinstim" Objects
predict.ah4

Predictions from a hhh4 Model
backprojNP

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

Plot Generation of the Observed and the defined Outbreak States of a (multivariate) time series
refvalIdxByDate

Compute indices of reference value using Date class
twinstim

Fit a Two-Component Spatio-Temporal Point Process Model
algo.cdc

The CDC Algorithm
findH

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

Update method for "epidataCS"
surveillance-package

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

Multivariate Surveillance through independent univariate algorithms
twinstim_plot

Plot methods for fitted twinstim's
algo.farrington.threshold

Compute prediction interval for a new observation
R0

Computes basic reproduction numbers from fitted models
algo.hhh.grid

Function to try multiple starting values
algo.hhh

Model fit based on the Held, Hoehle, Hofman paper
scale.gpc.poly

Centering and Scaling a "gpc.poly" Polygon
discpoly

Polygonal Approximation of a Disc/Circle
shadar

Salmonella Hadar cases in Germany 2001-2006
hhh4

Random effects HHH model fit as described in Paul and Held (2011)
algo.rogerson

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

Check the residual process of a fitted twinSIR or twinstim
farringtonFlexible

Surveillance for an univariate count data time series using the improved Farrington method described in Noufaily et al. (2012).
hhh4_validation

Predictive Model Assessment for HHH4 models
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
twinSIR_methods

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

Temporal and Spatial Interaction Functions for twinstim
twinSIR_cox

Identify Endemic Components in an Intensity Model
twinSIR_epidata_animate

Spatio-Temporal Animation of an Epidemic
unionSpatialPolygons

Compute the Unary Union of "SpatialPolygons"
twinSIR_profile

Profile Likelihood Computation and Confidence Intervals
twinstim_epidataCS

Class for Representing Continuous Space-Time Point Process Data
twinstim_step

Stepwise Model Selection by AIC
create.grid

Computes a matrix of initial values
salmonella.agona

Salmonella Agona cases in the UK 1990-1995
qlomax

Quantile Function of the Lomax Distribution
toFileDisProg

Writing of Disease Data
algo.compare

Comparison of Specified Surveillance Systems using Quality Values
algo.farrington.fitGLM

Fit the Poisson GLM of the Farrington procedure for a single time point
influMen

Influenza and meningococcal infections in Germany, 2001-2006
make.design

Create the design matrices
plot.survRes

Plot a survRes object
twinstim_update

update-method for "twinstim"
xtable.algoQV

Xtable quality value object
display-methods

Display Methods for Surveillance Time-Series Objects
residuals.ah

Residuals from a HHH model
linelist2sts

Convert individual case information based on dates into an aggregated time series
algo.hmm

Hidden Markov Model (HMM) method
algo.rki

The system used at the RKI
categoricalCUSUM

CUSUM detector for time-varying categorical time series
enlargeData

Data Enlargement
hhh4_methods

Print, Summary and Extraction Methods for "ah4" Objects
MMRcoverageDE

MMR coverage levels in the 16 states of Germany
addSeason2formula

Function that adds a sine-/cosine formula to an existing formula.
algo.cusum

CUSUM method
imdepi

Occurrence of Invasive Meningococcal Disease in Germany
ha

Hepatitis A in Berlin
simulate.ah4

Simulates data based on the model proposed by Paul and Held (2011)
surveillance.options

Options of the surveillance Package
stcd

Spatio-temporal cluster detection
zetaweights

Power-Law Weights According to Neighbourhood Order
isoWeekYear

Find ISO week and ISO year of a vector of Date objects
makePlot

Plot Generation
loglikelihood

Calculation of the loglikelihood needed in algo.hhh
plot.atwins

Plot results of a twins model fit
sim.seasonalNoise

Generation of Background Noise for Simulated Timeseries
simHHH

Simulates data based on the model proposed by Held et. al (2005)
twinSIR_epidata_summary

Summarizing an Epidemic
measles.weser

Measles epidemics in Lower Saxony in 2001-2002
compMatrix.writeTable

Latex Table Generation
create.disProg

Creating an object of class disProg
twinSIR_epidata_plot

Plotting the Evolution of an Epidemic
hagelloch

1861 measles epidemic in the city of Hagelloch, Germany
intensityplot

Plot Paths of Point Process Intensities
runifdisc

Sample Points Uniformly on a Disc
untie

Randomly Break Ties in Data
momo

Danish 1994-2008 all cause mortality data for six age groups
testSim

Print xtable for a Simulated Disease and the Summary
twinstim_epidataCS_animate

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

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

Profile Likelihood Computation and Confidence Intervals for twinstim objects
algo.glrnb

Cound data regression charts
hepatitisA

Hepatitis A in Germany
findK

Find reference value
nbOrder

Determine Neighbourhood Order Matrix from Binary Adjacency Matrix
magic.dim

Returns a suitable k1 x k2 for plotting the disProgObj
nowcast

Adjust observed epidemic curve for reporting delay of cases
residualsCT

Extract Cox-Snell-like Residuals of a Fitted Point Process
twinSIR

Fit an Additive-Multiplicative Intensity Model for SIR Data
poly2adjmat

Derive Adjacency Structure of "SpatialPolygons"
twinstim_iafplot

Plot the spatial or temporal interaction function of a twimstim
algo.farrington.assign.weights

Assign weights to base counts
algo.twins

Model fit based on a two-component epidemic model
correct53to52

Data Correction from 53 to 52 weeks
fluBYBW

Influenza in Southern Germany
measlesDE

Measles in the 16 states of Germany
twinSIR_epidata_intersperse

Impute Blocks for Extra Stops in "epidata" Objects
twinSIR_exData

Artificial data and data from the German Federal State Baden-Wuerttemberg
bestCombination

Partition of a number into two factors
hhh4_formula

Specify Formulae in a Random Effects HHH Model
isScalar

Checks if the Argument is Scalar
ks.plot.unif

Plot the ECDF of a uniform sample with Kolmogorov-Smirnov bounds
sim.pointSource

Generation of Simulated Point Source Epidemy
sts-class

Class "sts" -- surveillance time series
multiplicity

Count Number of Instances of Points
test

Print xtable for several diseases and the summary
twinstim_intensityplot

Plotting Intensities of Infection over Time or Space
aggregate.disProg

Aggregate the observed counts
algo.call

Query Transmission to Specified Surveillance Systems
algo.farrington

Surveillance for a count data time series using the Farrington method.
algo.outbreakP

Semiparametric surveillance of outbreaks
algo.summary

Summary Table Generation for Several Disease Chains
find.kh

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

Calculation of Average Run Length for discrete CUSUM schemes
inside.gpc.poly

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

RKI SurvStat Data
twinstim_simulation

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

Surveillance for a count data time series using the EARS C1, C2 or C3 method.
readData

Reading of Disease Data
twinSIR_epidata

Class for Epidemic Data Discrete in Space and Continuous in Time
abattoir

Abattoir Data
animate

Generic animation of spatio-temporal objects
disProg2sts

Convert disProg object to sts and vice versa
formatPval

Pretty p-Value Formatting
[,sts-methods

Extraction and Subsetting of sts objects
twinSIR_intensityplot

Plotting Paths of Infection Intensities for twinSIR Models