The Multivariate Hypergeometric Distribution
Generate random variables for the multivariate hypergeometric distribution
rmultihyper(n, k, m)
The number of observations.
The total number of balls drawn from the urn.
The integer vector containing the number of balls of each color in the urn. Length of vector is the number of colors.
This function generates random variables for the multivariate hypergeometric
distribution by iteratively calling hypergeometric random variable generator
This function will return a matrix of
length(m) rows and
and each column contains the number of balls of each color drawn from the urn.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.