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

Description Usage Arguments Value Examples

View source: R/freedom_functions_1.R

Description

Calculates population sensitivity for detecting disease assuming imperfect test sensitivity, perfect test specificity and a census of all units in the population

Usage

1
sep.exact(d = 1, se = 1, dig = 5)

Arguments

d

expected number of infected units in population (=design prevalence*N rounded to next integer), scalar or vector of same length as se

se

unit sensitivity of test (proportion), scalar or vector

dig

number of digits for rounding of results

Value

vector of population-level sensitivities

Examples

1
2
3
4
5
6
# examples for sep.exact - checked
sep.exact(d=1, se = 0.92)
inf<- 1:5
sens<- 0.8
sep.exact(d=inf, se=sens)
sep.exact(se=0.8, d = ceiling(0.01*c(10, 50, 100, 250, 500)))

Example output

[1] 0.92
[1] 0.80000 0.96000 0.99200 0.99840 0.99968
[1] 0.80000 0.80000 0.80000 0.99200 0.99968

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