simHyper: White and black balls in urn without replacement

Description Usage Arguments Examples

View source: R/simBinomial.R

Description

White and black balls in urn without replacement

Usage

1
simHyper(iter, N = 20, r = 12, n = 5)

Arguments

iter

# of experiments to run

N

# of balls

r

number of white balls

n

# of balls drawn

Examples

1
2
3
simHyper(iter=100,N=20, r=12, n=5)

Runs 100 experiments, selecting 5 balls without replacement each time. Plot is generated with frequency of white balls drawn.

rgamble819/MATH4753ouGamb0004 documentation built on April 20, 2021, 10:34 p.m.