Learn R Programming

binGroup2 (version 1.3.1)

ExpTests.OTC: Extract the expected number of tests from optimal testing configuration results

Description

Extract the expected number of tests and expected number of tests per individual from objects of class "OTC" returned by OTC1 or OTC2.

Usage

# S3 method for OTC
ExpTests(object, ...)

Value

A data frame containing the columns:

ExpTests

the expected number of tests required by the optimal testing configuration.

ExpTestsPerInd

the expected number of tests per individual for the optimal testing configuration.

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

Each row of the data frame represents an objective function specified in the call to OTC1 or OTC2.

Arguments

object

An object of class "OTC", 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
res1 <- OTC1(algorithm = "D2", p = 0.05, Se = 0.99, Sp = 0.99,
             group.sz = 2:100, obj.fn = c("ET", "MAR"),
             trace = TRUE)
ExpTests.OTC(res1)

Run the code above in your browser using DataLab