Learn R Programming

RSurveillance (version 0.2.1)

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

Description

Calculates the population sensitivity required to achieve a given value for the prior (discounted) probability of disease freedom

Usage

sep.prior(prior, p.intro)

Arguments

prior

prior probability of freedom before surveillance (scalar or vector)

p.intro

probability of introduction for time period (scalar or vector equal length to sep)

Value

a vector of population-level sensitivities

Examples

Run this code
# NOT RUN {
# examples of sep.prior
sep.prior(0.95, 0.01)
sep.prior(c(0.9, 0.95, 0.98, 0.99), 0.01)
sep.prior(0.95, c(0.001, 0.005, 0.01, 0.02, 0.05))
# }

Run the code above in your browser using DataLab