pmf is a generic function that extracts the probability mass function from an object (if available) that contains information aboout a testing configuration.

pmf(object, ...)

Arguments

object

An object from which the probability mass function is to be extracted.

...

Additional arguments to be passed to pmf.

See also

Author

Christopher R. Bilder

Examples

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