powered by
Calculates population specificity assuming representative sampling
spp(n, sp)
sample size (number tested), integer, scalar or vector
unit specificity of test (proportion), scalar or vector of same length as n
a vector of population-level specificities
# NOT RUN { # 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)) # }
Run the code above in your browser using DataLab