sep.pooled: Pooled population sensitivity

Description Usage Arguments Value Examples

View source: R/freedom_functions_1.R

Description

Calculates population sensitivity (sep) and population specificity (spp) assuming pooled sampling and allowing for imperfect sensitivity and specificity of the pooled test

Usage

1
sep.pooled(r, k, pstar, pse, psp = 1)

Arguments

r

number of pools sampled (scalar or vector)

k

pool size (scalar or vector of same length as r)

pstar

design prevalence (scalar or vector of same length as r)

pse

pool-level sensitivity (scalar or vector of same length as r)

psp

pool-level specificity (scalar or vector of same length as r)

Value

list of 2 elements, vector of sep values and vector of spp values

Examples

1
2
3
4
5
# examples for sep.pooled
sep.pooled(60, 5, 0.01, 1, 1)
sep.pooled(4, 10, 0.1, 0.9, 1)
sep.pooled(1:10*5, 5, 0.02, 0.9, 0.99)
sep.pooled(10, 5, 0.05, c(0.8, 0.9, 0.95, 0.99), 1)

evansergeant/RSurveillance documentation built on Nov. 8, 2019, 1:32 a.m.