Description Usage Arguments Details Examples
This function simulates data and computes histogram, density and (asymptotic) density of the mean
1 | CLT(distr, breaks, params, nsims)
|
distr |
Distribution to sample from. |
breaks |
Sames as the 'breaks' parameter in 'hist()'. |
params |
Vector of two elements with the parameters to use with 'distr'. |
nsims |
Number of simulations. |
In this example, the user can choose among three different distributions to sample from. In all cases, the simulated points are display, together a histogram, the density distribution (in green) and the asymptotic distribution of the mean of 'nsims' observations (in red).
1 2 | require(opencpu)
opencpu$browse('/library/GeogebraR/www/CLT.html')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.