ExpTests.opChar {binGroup2} | R Documentation |
Extract the expected number of tests from testing configuration results
Description
Extract the expected number of tests and expected number of
tests per individual from objects of class "opchar" returned by
operatingCharacteristics1
(opChar1)
or operatingCharacteristics2
(opChar2).
Usage
## S3 method for class 'opChar'
ExpTests(object, ...)
Arguments
object |
An object of class "opChar", from which the expected number of tests and expected number of tests per individual are to be extracted. |
... |
Additional arguments to be passed to |
Value
A data frame containing the columns:
ExpTests |
the expected number of tests required to decode all individuals in the algorithm. |
ExpTestsPerIndividual |
the expected number of tests per individual. |
PercentReductionTests |
The percent reduction in the number of tests; 100 * (1 - ExpTestsPerIndividual). |
PercentIncreaseTestCap |
The percent increase in testing capacity when the algorithm is applied to a continuous stream of specimens; 100 * (1/ExpTestsPerIndividual - 1). |
Author(s)
Brianna D. Hitt and Christopher R. Bilder
References
Bilder, C., Iwen, P., Abdalhamid, B., Tebbs, J., McMahan, C. (2020). “Tests in short supply? Try group testing.” Significance, 17, 15.
Examples
config.mat <- matrix(data = c(rep(1, 10), 1:10),
nrow = 2, ncol = 10, byrow = TRUE)
res1 <- opChar1(algorithm = "D2", p = 0.05, Se = 0.99, Sp = 0.99,
hier.config = config.mat)
ExpTests(res1)
res2 <- opChar2(algorithm = "A2M", p.vec = c(0.92, 0.05, 0.02, 0.01),
Se = rep(0.95, 2), Sp = rep(0.99, 2), rowcol.sz = 8)
ExpTests(res2)