Learn R Programming

RSurveillance (version 0.2.1)

sep.pooled: Pooled population sensitivity

Description

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

Usage

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

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab