Learn R Programming

DPQ (version 0.5-3)

dhyperBinMolenaar: HyperGeometric (Point) Probabilities via Molenaar's Binomial Approximation

Description

Compute hypergeometric (point) probabilities via Molenaar's binomial approximation, hyper2binomP().

Usage

dhyperBinMolenaar(x, m, n, k, log = FALSE)

Value

. . .

Arguments

x

..

m

..

n

..

k

..

log

logical indication if the logarithm log(P) should be returned (instead of \(P\)).

Author

Martin Maechler

Details

. . .

References

. . .

See Also

R's own dhyper() which uses more sophisticated computations.

Examples

Run this code
## 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