
Last chance! 50% off unlimited learning
Sale ends in
simMeans(ns, n, mu=0, sigma=1, ylim.bound=NULL,
show.title=TRUE, show.data=TRUE, max.data=10,
col.grid="grey90", pause=FALSE,
sort=NULL, set.mu=FALSE, digits.d=2,
main=NULL, pdf.file=NULL, pdf.width=5, pdf.height=5)
TRUE
unless se.mu
or pause
is TRUE
mu
and sigma
, usually to guess the correct value.If pause=TRUE
, then the true population values are not revealed as the simulation progresses. These values are saved in the user's workspace and can be revealed by entering their names at the user prompt, mu
and sigma
.
# 8 samples, each with a sample size of 10
# mu=0, sigma=1, that is, sample from the standard normal
simMeans(8, 10)
# 25 sample means with a sample size each of 100
# mu=100, sigma=15
# pause after each interval and show the data
simMeans(25, 100, mu=100, sigma=15, show.data=FALSE)
Run the code above in your browser using DataLab