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

Description Usage Arguments Value Examples

View source: R/freedom_functions_1.R

Description

Calculates the population sensitivity required to achieve a given value for probability of disease freedom

Usage

1
sep.pfree(prior, pfree)

Arguments

prior

prior probability of freedom before surveillance (scalar or vector)

pfree

desired probability of freedom (scalar or vector)

Value

a vector of population-level sensitivities

Examples

1
2
3
4
# examples of sep.pfree
sep.pfree(0.5, 0.95)
sep.pfree(c(0.5, 0.6, 0.7, 0.8, 0.9, 0.95), 0.99)
sep.pfree(0.5, c(0.8, 0.9, 0.95, 0.99))

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