Learn R Programming

simsem (version 0.2-8)

simHyper: Create random hypergeometric distribution object

Description

Create random hypergeometric distribution object. Random hypergeometric distribution object will save the numbers of successes, failures, and drawns parameters.

Usage

simHyper(m, n, k)

Arguments

m
The number of successes
n
The number of failures
k
The number of drawns

Value

  • SimHyperRandom Hypergeometric Distribution object (SimHyper) that save the specified parameters

See Also

  • VirtualDistfor all distribution objects.

Examples

Run this code
hyp <- simHyper(20, 5, 10)
    run(hyp)
	summary(hyp)

Run the code above in your browser using DataLab