meanVSmedian {NCStats}R Documentation

Simulations to demonstrate ‘how’ the mean and median are computed.

Description

This function visually illustrates how the mean “balances” distances and the median “balances” individuals in a random sample from a known population. The user can manipulate the number of individuals in the sample and the shape of the population to determine how these attributes affect the calculation of the mean and median.

Usage

meanVSmedian()

Value

None, but a dynamic graphic with slider bars will be produced.

Note

On first call a dialog box with three sliders will appear in the upper-left corner of the R window. A graphic will not be seen until an item in the dialog box is changed. At this time, the dialog box will appear to disappear. However, it has simply been minimized and can be reaccessed as all minimized programs are accessed. This “bug” only appears when the function is started and upon first change of an item in the dialog box.

Author(s)

Derek H. Ogle, dogle@northland.edu

Examples

## Not run by examples().  Copy and try in an interactive R session
## Not run: meanVSmedian()

[Package NCStats version 0.0-12 Index]