sep.prior {RSurveillance}R Documentation

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

# 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))

[Package RSurveillance version 0.2.1 Index]