nbinom.simu.plot: Histogram and Q-Q plot of simulated Negative Binomial...

Description Usage Arguments Value Examples

Description

Histogram and Q-Q plot of simulated Negative Binomial distribution

Usage

1
nbinom.simu.plot(n, size, prob, times, ylim = NULL, qqplot = FALSE)

Arguments

n

number of observations

size

number of trials (zero or more)

prob

probability of success on each trial

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 Negative Binomial distribution, red curve represents theoretical density

Examples

1
nbinom.simu.plot(n = 10, size = 5, prob = 0.2, times = 100)

Example output



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