Description Usage Arguments Value Examples

View source: R/plot_sampling_hist.R

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

1 | ```
plot_sampling_hist(samples, var_name, sample_size)
``` |

`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 |

a grid of the sampling distributions

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.