Description Usage Arguments Value Author(s) Examples
Function samples many times from the same population.
1 | multisample(population, size, permutations = 1000, CLT = FALSE)
|
population |
A vector of data for the whole population |
size |
The size of the sample |
permutations |
The number of times to sample from the population |
CLT |
A logical value to indicate if summary statistics should be generated, # based on the central limit theorem. |
The function returns a list of samples. If CLT = TRUE, it also returns summary statistics from the samples, plus expected values based on the central limit theorem.
Michael Collyer
1 2 3 4 5 6 7 8 | Y <- rnorm(10000)
mySamples <- multisample(population = Y, size = 50, permutations = 100, CLT = FALSE)
summary(mySamples)
mySamples$samples[1:3]
mySamples <- multisample(population = Y, size = 50, permutations = 100, CLT = TRUE)
summary(mySamples)
plot(mySamples)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.