Hi Jörg,
our package distrTeach has functions to visualize the central limit
theorem and the law of large numbers for "arbitrary" univariate
distributions; e.g.,
library(distrTeach)
D <- sin(Norm()) + Pois()
plot(D)
illustrateCLT(D, len = 10)
illustrateLLN(D, m = 10)
Best
Matthias
Jörg Groß wrote:
Hi,
Is there a way to simulate a population with R and pull out m samples,
each with n values
for calculating m means?
I need that kind of data to plot a graphic, demonstrating the central
limit theorem
and I don't know how to begin.
So, perhaps someone can give me some tips and hints how to start and
which functions to use.
thanks for any help,
joerg
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Dr. Matthias Kohl
www.stamats.de
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.