spp: Population specificity

Description Usage Arguments Value Examples

Description

Calculates population specificity assuming representative sampling

Usage

1
spp(n, sp)

Arguments

n

sample size (number tested), integer, scalar or vector

sp

unit specificity of test (proportion), scalar or vector of same length as n

Value

a vector of population-level specificities

Examples

1
2
3
4
# examples for spp - checked
spp(10, 0.9)
spp(c(10, 20, 50, 100), 0.99)
spp(100, c(0.999, 0.99, 0.98, 0.95, 0.9))


Search within the RSurveillance package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.