Internal function to draw a set of sensitivities or specificities This is intended for the case where testPos == totalDzPos or testNeg == totalDzNeg.

1 2 3 | ```
drawMaxedOut(n, R, consistentQuantile = 0.5, verbose,
parameters = list(shrink = 5, tol = 5e-04, nEach = 80),
method = "deterministic")
``` |

`n` |
The total number of positives/negatives in the population. |

`R` |
is the number of replications in each round of the bootstrap (has been tested at 10,000 or greater). |

`consistentQuantile` |
Defaults to 0.5, i.e. the median. Finds the lowest probability for which the random draws are likely to be consistently one, where consistently is defined by this value (i.e. at .5, a simple majority of the time is enough for consistency) |

`verbose` |
Whether to display internal operations as they happen. |

`parameters` |
List of control parameters (shrink, tol, nEach) for sequential search. |

`method` |
Either "deterministic" or "search". The former is faster and more accurate. Thanks to an anonymous reviewer for pointing out the utility of the binomial distribution in solving this problem. |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.