Random generation for the multivariate hypergeometric distribution

Description

Generates random observations from a multivariate hypergeometric distribution.

Usage

1
rXhyper(theta, data, number = 1)

Arguments

theta

Odds ratio

data

Population margins

number

Number of random observations to be drawn

Value

Returns a vector.

Author(s)

Sebastien Haneuse

See Also

rhyper.

Examples

1
2
3
##
    mdata = list(M0 = 50, M1 = 50, N0 = 70, N1 = 30)
    rXhyper(1.2, mdata, 1 )