Generate replicates for uniform multivariate hypergeometric distribution

urmvhyper(N, m, k = NULL, fraction = NULL, nn = 10000)

Arguments

N

number of marbles

m

number of colours

k

sample size

fraction

Fraction of N to sample

nn

Number of replicates

Details

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.

See also