geom.simu.plot {clttools}R Documentation

Histogram and Q-Q plot of simulated Geometric distribution

Description

Histogram and Q-Q plot of simulated Geometric distribution

Usage

geom.simu.plot(n, prob, times, ylim = NULL, qqplot = FALSE)

Arguments

n

number of observations

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

Examples

geom.simu.plot(n = 10, prob = 0.2, times = 100)

[Package clttools version 1.3 Index]