Learn R Programming

binGroup2 (version 1.3.1)

ExpTests.opChar: 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 opChar
ExpTests(object, ...)

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

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 ExpTests (e.g., digits to be passed to round for appropriate rounding).

Author

Brianna D. Hitt and Christopher R. Bilder

References

bilder2020testsbinGroup2

Examples

Run this code
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)

Run the code above in your browser using DataLab