plot_sample_ci: compstatslib plot_sample_ci() function

View source: R/sample_ci_plot.R

plot_sample_ciR Documentation

compstatslib plot_sample_ci() function

Description

Visualize the confidence intervals of samples drawn from a population.

Usage

plot_sample_ci()

Arguments

num_samples

Number of the samples to draw from the population.

sample_size

Size of each sample drawn from the population.

pop_size

Size of the overall population to simulate.

distr_func

Random data generation function to simulate the population data (e.g., rnorm or runif).

...

Parameters to pass to the distr_func function specified.

Examples

## Not run: 
plot_sample_ci(sample_size=300, distr_func=rnorm, mean=50, sd=10)
plot_sample_ci(sample_size=300, distr_func=runif, min=17, max=35)

## End(Not run)


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