# characteristics.pool: Testing expenditure for informative Dorfman testing In binGroup: Evaluation and Experimental Design for Binomial Group Testing

## Description

Calculate the expectation and variation of the testing expenditure of a pool used with informative Dorfman testing.

## Usage

 `1` ```characteristics.pool(p, se, sp) ```

## Arguments

 `p` a vector of each individual's probability of infection. `se` the sensitivity of the diagnostic test. `sp` the specificity of the diagnostic test.

## Details

This function calculates the expected value and variance of the testing expenditure of a pool of size greater than or equal to one used with informative Dorfman testing. Calculations of these measures are done using the equations presented in McMahan et al. (2012).

## Value

a list containing:

 `e` the expected testing expenditure of the pool. `v` the variation of the testing expenditure of the pool.

## 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`, `inf.dorf.measures`, `opt.info.dorf`, `opt.pool.size`, `pool.specific.dorf`, `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) characteristics.pool(p=p.vec[1:3], se=0.90, sp=0.90) ```