powered by
Compute hypergeometric (point) probabilities via Molenaar's binomial approximation, hyper2binomP().
hyper2binomP()
dhyperBinMolenaar(x, m, n, k, log = FALSE)
. . .
..
logical indication if the logarithm log(P) should be returned (instead of \(P\)).
logical
log(P)
Martin Maechler
R's own dhyper() which uses more sophisticated computations.
dhyper()
## 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)
Run the code above in your browser using DataLab