Extract the probability mass function from group testing results for the halving algorithm (objects of class "halving" returned by halving).

# S3 method for class 'halving'
pmf(object, ...)

Arguments

object

An object of class "halving", created by halving, from which the PMF is to be extracted.

...

currently not used.

Value

Data frame containing the probability mass function extracted from the object object.

Author

Brianna D. Hitt

Examples

res <- halving(p = rep(0.01, 10), Sp = 1, Se = 1,
               stages = 2, order.p = TRUE)
pmf(res)
#>   num.tests prob.tests
#> 1         1     0.9044
#> 2        11     0.0956