Usage
simCLT(ns, n, p1=0, p2=1,
type=c("normal", "uniform", "lognormal", "antinormal"),
fill="lightsteelblue3", n.display=2, digits.d=3,
subtitle=TRUE, pop=TRUE,
main=NULL, pdf=FALSE, width=5, height=5, …)
Arguments
ns
Number of samples, that is, repetitions of the experiment.
p1
First parameter value for the population distribution, the mean, minimum or meanlog for the normal, uniform and lognormal populations, respectively. Must be 0, the minimum, for the anti-normal distribution.
p2
Second parameter value for the population distribution, the standard deviation, maximum or sdlog for the normal, uniform and lognormal populations, respectively. Is the maximum for the anti-normal, usually left at the default value of 1.
type
The general population distribution.
fill
Fill color of the graphs.
n.display
Number of samples for which to display the sample mean and data values.
digits.d
Number of decimal digits to display on the output.
subtitle
If TRUE
, then display the specific parameter values of the population or sample, depending on the graph.
pop
If TRUE
, then display the graph of the population from which the data are sampled.
pdf
Indicator as to if the graphic files should be saved as pdf files
instead of directed to the standard graphics windows.
width
Width of the pdf file in inches.
height
Height of the pdf file in inches.
…
Other parameter values for R function lm
which provides the core computations.