Learn R Programming

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

surveillance (version 1.2-1)

Modeling and monitoring discrete response time series

Description

A package implementing statistical methods for the modeling and change-point detection in time series of counts, proportions and categorical data. 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 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) and Paul et al. (2008) are provided. A novel CUSUM approach combining logistic and multinomial logistic modelling is also included. 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,603

Version

1.2-1

License

GPL-2

Maintainer

Michael Hoehle

Last Published

January 15th, 2012

Functions in surveillance (1.2-1)

LRCUSUM.runlength

Run length computation of a CUSUM detector
refvalIdxByDate

Compute indices of reference value using Date class
salmonella.agona

Salmonella Agona cases in the UK 1990-1995
wrap.algo

Multivariate Surveillance through independent univariate algorithms
algo.farrington.fitGLM

Fit the Poisson GLM of the Farrington procedure for a single time point
sim.seasonalNoise

Generation of Background Noise for Simulated Timeseries
print.algoQV

Print quality value object
algo.summary

Summary Table Generation for Several Disease Chains
[-methods

Methods for "[": Extraction or Subsetting in Package 'surveillance'
sim.pointSource

Generation of Simulated Point Source Epidemy
makePlot

Plot Generation
make.design

Create the design matrices
algo.call

Query Transmission to Specified Surveillance Systems
stcd

Spatio-temporal cluster detection
momo

Danish 1994-2008 all cause mortality data for six age groups
compMatrix.writeTable

Latex Table Generation
algo.rogerson

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

Find reference value
display-methods

Display Methods for Surveillance Time-Series Objects
deleval

Surgical failures data
ha

Hepatitis A in Berlin
readData

Reading of Disease Data
algo.rki

The system used at the RKI
algo.quality

Computation of Quality Values for a Surveillance System Result
sumNeighbours

Calculates the sum of counts of adjacent areas
measles.weser

Measles epidemics in Lower Saxony in 2001-2002
year-methods

Methods for Function year
surveillance-package

Outbreak detection algorithms for surveillance data
algo.farrington.assign.weights

Assign weights to base counts
algo.bayes

The Bayes System
algo.cusum

CUSUM method
aggregate.disProg

Aggregate the observed counts
categoricalCUSUM

CUSUM detector for time-varying categorical time series
magic.dim

Returns a suitable k1 x k2 for plotting the disProgObj
isoWeekYear

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

Print xtable for several diseases and the summary
algo.hhh

Model fit based on the Held, Hoehle, Hofman paper
algo.outbreakP

Semiparametric surveillance of outbreaks
algo.farrington

Surveillance for a time series using the Farrington procedure.
pairedbinCUSUM

Paired binary CUSUM and its run-length computation
plot.disProg

Plot Generation of the Observed and the defined Outbreak States of a (multivariate) time series
xtable.algoQV

Xtable quality value object
algo.compare

Comparison of Specified Surveillance Systems using Quality Values
primeFactors

Prime number factorization
algo.glrnb

Cound data regression charts
algo.glrpois

Poisson regression charts
estimateGLRPoisHook

Hook function for in-control mean estimation
influMen

Influenza and meningococcal infections in Germany, 2001-2006
estimateGLRNbHook

Hook function for in-control mean estimation
disProg2sts

Convert disProg object to sts and vice versa
plot.atwins

Plot results of a twins model fit
surveillance-internal

Internal surveillance Functions
simHHH

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

Print xtable for a Simulated Disease and the Summary
create.grid

Computes a matrix of initial values
bestCombination

Partition of a number into two factors
meanResponse

Calculate mean response needed in algo.hhh
observed-methods

Methods
obsinyear-methods

~~ Methods for Function obsinyear ~~
find.kh

Determine the k and h values in a standard normal setting
create.disProg

Creating an object of class disProg
findH

Find decision interval for given in-control ARL and reference value
predict.ah

Predictions from a HHH model
m1

RKI SurvStat Data
sts-class

Class "sts" -- surveillance time series
algo.twins

Model fit based on a two-component epidemic model
algo.hhh.grid

Function to try multiple starting values
algo.hmm

Hidden Markov Model (HMM) method
abattoir

Abattoir Data
loglikelihood

Calculation of the loglikelihood needed in algo.hhh
arlCusum

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

The CDC Algorithm
enlargeData

Data Enlargement
plot.survRes

Plot a survRes object
correct53to52

Data Correction from 53 to 52 weeks
hepatitisA

Hepatitis A in Germany
shadar

Salmonella Hadar cases in Germany 2001-2006
CIdata

Confidence-Interval for the Mean of the Poisson Distribution
algo.farrington.threshold

Threshold computations using a two sided confidence interval
anscombe.residuals

Compute Anscombe residuals
residuals.ah

Residuals from a HHH model
aggregate-methods

Aggregate the the series of an sts object
toFileDisProg

Writing of Disease Data