CIMean function

Confidence Intervals (for one population mean)

Confidence Intervals (for one population mean)

An app to investigate how sample size and confidence level affect the width of a confidence interval. A sample is drawn from the input population and a confidence interval for the population mean is calculated. The kernel density plot for the population and the histogram for each new sample are plotted, along with the confidence interval. Summary information is output to the console to tally the number of times the computed confidence interval covers the true population mean and how many times it misses. There is an option to draw 100 or 1000 samples at a time.

CIMean(form,data)

Arguments

  • form: a formula of the form ~var.
  • data: A data frame from which var is drawn.

Returns

Graphical and numerical output

Examples

## Not run: if (require(manipulate)) CIMean(~height,data=imagpop) ## End(Not run)

Author(s)

Rebekah Robinson rebekah_robinson@georgetowncollege.edu

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

Useful links