
Last chance! 50% off unlimited learning
Sale ends in
Compute hypergeometric cumulative probabilities via (good) binomial
distribution approximations.
The arguments of these functions are exactly those of R's own
phyper()
.
. . .
phyperBin.1(q, m, n, k, lower.tail = TRUE, log.p = FALSE)
phyperBin.2(q, m, n, k, lower.tail = TRUE, log.p = FALSE)
phyperBin.3(q, m, n, k, lower.tail = TRUE, log.p = FALSE)
phyperBin.4(q, m, n, k, lower.tail = TRUE, log.p = FALSE)
vector of quantiles representing the number of white balls drawn without replacement from an urn which contains both black and white balls.
the number of white balls in the urn.
the number of black balls in the urn.
the number of balls drawn from the urn, hence must be in
logical; if TRUE (default), probabilities are
logical; if TRUE, probabilities p are given as log(p).
. . .
# NOT RUN {
## The function is simply defined as
function (q, m, n, k, lower.tail = TRUE, log.p = FALSE)
pbinom(q, size = k, prob = m/(m + n), lower.tail = lower.tail,
log.p = log.p)
# }
Run the code above in your browser using DataLab