rXhyper: Random generation for the multivariate hypergeometric...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/xhyper.R

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 )

osDesign documentation built on May 29, 2017, 8:45 p.m.

Search within the osDesign package
Search all R packages, documentation and source code