drawMaxedOut {bootLR} | R Documentation |
Internal function to draw a set of sensitivities or specificities This is intended for the case where testPos == totalDzPos or testNeg == totalDzNeg.
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. |