[R] plot - central limit theorem

Tobias Verbeke tobias.verbeke at gmail.com
Wed Oct 15 22:05:35 CEST 2008


Hi Joerg,

> 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.

Have a look at

library(TeachingDemos)
?clt.examp

HTH,
Tobias



More information about the R-help mailing list