Description Usage Arguments Details Value See Also

Generate random variables for the multivariate hypergeometric distribution

1 | ```
rmultihyper(n, k, m)
``` |

`n` |
The number of observations. |

`k` |
The total number of balls drawn from the urn. |

`m` |
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
`rhyper`

.

This function will return a matrix of `length(m)`

rows and `n`

columns,
and each column contains the number of balls of each color drawn from the urn.

wulingyun/Corbi documentation built on May 28, 2017, 6:37 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.