plot_sampling: compstatslib plot_sampling() function

View source: R/sampling_plot.R

plot_samplingR Documentation

compstatslib plot_sampling() function

Description

Plot distribution of a population, samples drawn from the population, given sampling statistic.

Usage

plot_sampling()

Arguments

population

A vector of values following any population distribution you wish to simulate.

sample_size

The size of each sample to draw from the population

theta

The function that computes the statistic of interest from each sample (e.g., mean or median).

Value

A list containing the population data, sample statistics, and other information of interest

Examples

## Not run: 
plot_sampling(rnorm(100000), sample_size = 100, reps = 50, theta = median)

## End(Not run)


soumyaray/compstatslib documentation built on March 11, 2023, 8:39 p.m.