plot_sampling_dist: Plots the distributions of the sample means from the...

Description Usage Arguments Value Examples

Description

Plots the distributions of the sample means from the population.

Usage

1
plot_sampling_dist(pop, n = 1e+05, size = c(2, 5, 30), facets = FALSE)

Arguments

pop

Vector containing the population (anything over 10,000 will take a long time to run on most ocmputers)

n

Number of replicas of each sample

size

Vector containing sizes for each sampling distribution

facets

Set to TRUE if you want plot each distribution on a separate facet

Value

ggplot2 plot object

Examples

1
2
3
x <- runif(10000)
plot_sampling_dist(x, facets = TRUE)
plot_sampling_dist(x, n = 1e6, size = c(2, 10, 50, 100))

ericnovik/introstats documentation built on May 16, 2019, 8:28 a.m.