RSurveillance: Design and Analysis of Disease Surveillance Activities

A range of functions for the design and analysis of disease surveillance activities. These functions were originally developed for animal health surveillance activities but can be equally applied to aquatic animal, wildlife, plant and human health surveillance activities. Utilities are included for sample size calculation and analysis of representative surveys for disease freedom, risk-based studies for disease freedom and for prevalence estimation.

Install the latest version of this package by entering the following in R:
AuthorEvan Sergeant
Date of publication2016-10-04 00:15:41
MaintainerEvan Sergeant <>
LicenseGPL-2 | GPL-3

View on CRAN

Man pages

adj.risk: Adjusted risk

adj.risk.sim: Adjusted risk for simulation models

ap: Apparent prevalence

binom.agresti: Agresti-Coull confidence limits

binom.cp: Clopper-Pearson exact confidence limits

binom.jeffreys: Jeffreys confidence limits

disc.prior: Discounted prior probability of freedom

epi.calc: Effective probability of infection (EPI)

n.2stage: 2-stage freedom sample size

n.ap: Sample size for apparent prevalence

n.binom: Binomial sample size

n.c.freecalc: Freecalc optimum sample size and cut-point number of...

n.c.hp: Hypergeometric (HerdPlus) optimum sample size and cut-point...

n.freecalc: Freecalc sample size for a finite population and specified...

n.freedom: Freedom sample size

n.hp: Hypergeometric (HerdPlus) sample size for finite population...

n.hypergeo: Hypergeometric sample size

n.pfree: Sample size to achieve desired (posterior) probability of...

n.pooled: Sample size for pooled testing for freedom

n.rb: Risk-based sample size

n.rb.2stage.1: sample size for 2-stage risk-based surveillance, risk factor...

n.rb.2stage.2: Sample size for 2-stage risk-based surveillance, allowing for...

n.rb.varse: Risk-based sample size for varying unit sensitivity Sample size for true prevalence

pfree.1: Probability of freedom for single time period

pfree.calc: Probability of freedom over time

pfree.equ: Equilibrium probability of freedom

pstar.calc: Design prevalence back-calculation

sep: Population sensitivity

se.parallel: Sensitivity of tests in parallel

sep.binom: Binomial Population sensitivity

sep.binom.imperfect: Binomial population sensitivity for imperfect test

sep.exact: Population sensitivity for census (all units tested)

sep.freecalc: FreeCalc population sensitivity for imperfect test

sep.hp: Hypergeometric (HerdPlus) population sensitivity for...

sep.hypergeo: Hypergeometric Population sensitivity

sep.passive: Passive surveillance sensitivity

sep.pfree: Population sensitivity to achieve desired (posterior)...

sep.pooled: Pooled population sensitivity

sep.prior: Population sensitivity to achieve desired prior probability...

sep.rb2.binom: Binomial risk-based population sensitivity for 2 risk factors

sep.rb2.hypergeo: Hypergeometric risk-based population sensitivity for 2 risk...

sep.rb.bin: Binomial risk-based population sensitivity

sep.rb.bin.varse: Binomial risk-based population sensitivity for varying unit...

sep.rb.hypergeo: Hypergeometric risk-based population sensitivity

sep.rb.hypergeo.varse: Hypergeometric risk-based population sensitivity for varying...

sep.sys: 2-stage population sensitivity Population sensitivity for varying unit sensitivity

se.series: Sensitivity of tests in series

sph.binom: Binomial population specificity for imperfect test

sph.hp: Hypergeometric population specificity calculation

spp: Population specificity

sp.parallel: Specificity of tests in parallel

sp.series: Specficity of tests in series

sse.combined: System sensitivity by combining multiple surveillance...

sse.rb.2stage: Two-stage risk-based system sensitivity

tp: True prevalence

tp.normal: Normal approximation confidence limits for true prevalence


adj.risk Man page
adj.risk.sim Man page
ap Man page
binom.agresti Man page
binom.cp Man page
binom.jeffreys Man page
disc.prior Man page
epi.calc Man page
n.2stage Man page
n.ap Man page
n.binom Man page
n.c.freecalc Man page
n.c.hp Man page
n.freecalc Man page
n.freedom Man page
n.hp Man page
n.hypergeo Man page
n.pfree Man page
n.pooled Man page
n.rb Man page
n.rb.2stage.1 Man page
n.rb.2stage.2 Man page
n.rb.varse Man page Man page
pfree.1 Man page
pfree.calc Man page
pfree.equ Man page
pstar.calc Man page
sep Man page
se.parallel Man page
sep.binom Man page
sep.binom.imperfect Man page
sep.exact Man page
sep.freecalc Man page
sep.hp Man page
sep.hypergeo Man page
sep.passive Man page
sep.pfree Man page
sep.pooled Man page
sep.prior Man page
sep.rb2.binom Man page
sep.rb2.hypergeo Man page
sep.rb.bin Man page
sep.rb.bin.varse Man page
sep.rb.hypergeo Man page
sep.rb.hypergeo.varse Man page
sep.sys Man page Man page
se.series Man page
sph.binom Man page
sph.hp Man page
spp Man page
sp.parallel Man page
sp.series Man page
sse.combined Man page
sse.rb.2stage Man page
tp Man page
tp.normal Man page

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.