Learn R Programming

binGroup2 (version 1.3.1)

pmf.halving: Extract probability mass function (PMF) from group testing results

Description

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

Usage

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

Value

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

Arguments

object

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

...

currently not used.

Author

Brianna D. Hitt

Examples

Run this code
res <- halving(p = rep(0.01, 10), Sp = 1, Se = 1,
               stages = 2, order.p = TRUE)
pmf(res)

Run the code above in your browser using DataLab