This function draws samples of various sizes from a population.
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