R/sampling_curves.R
urmvhyper.RdGenerate replicates for uniform multivariate hypergeometric distribution
urmvhyper(N, m, k = NULL, fraction = NULL, nn = 10000)
| N | number of marbles |
|---|---|
| m | number of colours |
| k | sample size |
| fraction | Fraction of N to sample |
| nn | Number of replicates |
N,m The number of marbles of each colour in the urn must be
integral. If the total number of marbles, N, is not evenly divisible
by the number of colours, m, the remaining r marbles are added one
by one to the the first r colours.