Description Usage Arguments Value Examples
This function draws samples of various sizes from a population.
1 | draw_samples(pop, reps, sample_size)
|
pop |
the virtual population as a tibble |
reps |
the number of replication for each sample size as an integer value |
sample_size |
the sample size for each one of the samples as an array |
a tibble containing the sample numbers and sample values tibble columns are replicate, string from pop, size and rep_size rep_size will contain repeated number of reps, used for plotting in other functions
1 2 | pop <- generate_virtual_pop(100, "Variable", rnorm, 0, 1)
samples <- draw_samples(pop, 3, c(1, 10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.