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

Description Usage Arguments Value Examples

View source: R/freedom_functions_1.R

Description

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

Usage

1
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

1
2
3
4
# 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))

RSurveillance documentation built on July 2, 2020, 2:33 a.m.