hyper.simu.plot: Histogram and Q-Q plot of simulated Hypergeometric...

Description Usage Arguments Value Examples

Description

Histogram and Q-Q plot of simulated Hypergeometric distribution

Usage

1
hyper.simu.plot(n, a, b, k, times, ylim = NULL, qqplot = FALSE)

Arguments

n

number of observations

a

the number of white balls in the urn

b

the number of black balls in the urn

k

the number of balls drawn from the urn

times

number of simulations

ylim

range of y-axis

qqplot

an argument to output Q-Q plot or not, can be TRUE or FALSE

Value

Histogram and Q-Q plot of simulated Hypergeometric distribution, red curve represents theoretical density

Examples

1
hyper.simu.plot(n = 10, a = 10, b = 10, k = 5, times = 100)

Example output



clttools documentation built on May 2, 2019, 9:17 a.m.