spp: Population specificity

Description Usage Arguments Value Examples

View source: R/freedom_functions_1.R

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))

RSurveillance documentation built on May 29, 2017, 11:52 p.m.