# pool.specific.dorf: Find the optimal pool sizes for Pool-Specific Optimal Dorfman... In binGroup: Evaluation and Experimental Design for Binomial Group Testing

## Description

Find the set of optimal pool sizes for Pool-Specific Optimal Dorfman (PSOD) testing.

## Usage

 `1` ```pool.specific.dorf(p, max.p, se, sp) ```

## Arguments

 `p` a vector of each individual's probability of infection. `max.p` the maximum allowable pool size. `se` the sensitivity of the diagnostic test. `sp` the specificity of the diagnostic test.

## Details

This function finds the set of optimal pool sizes for PSOD testing. PSOD testing uses a greedy algorithm and does not consider all possible sets of pool sizes. See McMahan et al. (2012) for additional details on the implementation of PSOD testing.

## Value

The optimal set of pool sizes for PSOD testing.

## Author(s)

This function was originally written by Christopher S. McMahan for McMahan et al. (2012). The function was obtained from http://chrisbilder.com/grouptesting.

## References

\insertRef

McMahan2012abinGroup

Other Informative Dorfman functions: `accuracy.dorf`, `characteristics.pool`, `inf.dorf.measures`, `opt.info.dorf`, `opt.pool.size`, `thresh.val.dorf`
 ```1 2 3 4 5 6 7``` ```# This example takes less than 1 second to run. # Estimated running time was calculated using a # computer with 16 GB of RAM and one core of an # Intel i7-6500U processor. set.seed(8135) p.vec <- p.vec.func(p=0.02, alpha=1, grp.sz=10) pool.specific.dorf(p=p.vec, max.p=3, se=0.95, sp=0.95) ```