create_sampling_hist: Create a sampling distribution histogram from samples

Description Usage Arguments Value Examples

View source: R/create_sampling_hist.R

Description

This function creates a list of sampling distribution histogram of the mean of different sample sizes drawn from a population

Usage

1
create_sampling_hist(samples, var_name, sample_size)

Arguments

samples

the samples as a tibble

var_name

the name of the variable/parameter of interest that is being generated

sample_size

a vector of the sample sizes

Value

a list of the sampling distributions

Examples

1
2
3
pop <- generate_virtual_pop(100, "Variable", rnorm, 0, 1)
samples <- draw_samples(pop, 3, c(1, 10))
create_sampling_hist(samples, Variable, c(1, 10))

tguo9/samplingsimulatorr documentation built on May 5, 2020, 12:10 a.m.