The command invisibly returns the fraction of intervals that capture
the true mean.
Arguments
distr
distribution of the population to be sampled. Options include
"normal", "exponential", "uniform" and "binary"
(partial match allowed).
size
sample size
conf.level
confidence level.
Author
Laura Chihara
Details
This simulation will draw 100 random samples from a given population
distribution and compute the correpsonding confidence intervals. The 100
intervals will be drawn with an indication of the ones that missed the true
mean. A histogram of the population will also be created.