MeanSampler function

Repeated Sampling for a Mean (Slow)

Repeated Sampling for a Mean (Slow)

An app to explore the sampling distribution of the sample mean. The user takes one sample at a time from a given population. Output to the console describes relevant features of the sample, and graphical output updates the empirical distribution of the sample mean.

MeanSampler(form,data,max.sample.size=30,show.sample=FALSE)

Arguments

  • form: an object of class formula, of the form ~x, where x is a numeric variable from the data frame supplied by:
  • data: A dataframe, representing the imaginary population.
  • max.sample.size: Maximum sample size on the slider.
  • show.sample: If TRUE, the complete sample will be output to the console, in addition to the summary information.

Returns

Graphical and numerical output.

Note

Uses manipulate.

Examples

## Not run: data(imagpop) if (require(manipulate)) MeanSampler(~income,data=imagpop) ## End(Not run)

Author(s)

Homer White hwhite0@georgetowncollege.edu

  • Maintainer: Homer White
  • License: GPL (>= 3)
  • Last published: 2020-06-15

Useful links