tSampler: Illustrating the t-statistic

Description Usage Arguments Value Note Author(s) Examples

View source: R/tSampler.R

Description

An app to explore the distribution of the t-statistic. The user takes one sample at a time from a given population. Graphical output updates the empirical distribution of the sample mean.

Usage

1
tSampler(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.

Value

Graphical and numerical output.

Note

Uses manipulate.

Author(s)

Homer White hwhite0@georgetowncollege.edu

Examples

1
2
3
4
5
## Not run: 
data(imagpop)
if (require(manipulate)) tSampler(~income,data=imagpop)

## End(Not run)

tigerstats documentation built on July 2, 2020, 2:32 a.m.