dhyperBinMolenaar | R Documentation |
Compute hypergeometric (point) probabilities via Molenaar's binomial
approximation, hyper2binomP()
.
dhyperBinMolenaar(x, m, n, k, log = FALSE)
x |
(vector of) the number of white balls drawn without replacement from an urn which contains both black and white balls. |
m |
the number of white balls in the urn. |
n |
the number of black balls in the urn. |
k |
the number of balls drawn from the urn, hence in |
log |
|
a numeric
vector, with the length the maximum of the
lengths of x, m, n, k
.
Martin Maechler
See those in phyperBinMolenaar
.
hyper2binomP()
;
R's own dhyper()
which uses more sophisticated
computations.
## The function is simply defined as
function (x, m, n, k, log = FALSE)
dbinom(x, size = k, prob = hyper2binomP(x, m, n, k), log = log)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.