rp.tables {rpanel}R Documentation

Interactive statistical tables

Description

This function launches a panel which allows standard normal, t, chi-squared and F distributions to be plotted, with interactive control of parameters, tail probability and p-value calculations.

Usage

  rp.tables(panel.plot = TRUE, hscale = NA, vscale = hscale)

Arguments

panel.plot

a logical parameter which determines whether the plot is placed inside the panel (TRUE) or the standard graphics window (FALSE). If the plot is to be placed inside the panel then the tkrplot library is required.

hscale, vscale

horizontal and vertical scaling factors for the size of the plot when panel.plot is set to TRUE. It can be useful to adjust these for projection on a screen, for example. The default values are 1 on Unix platforms and 1.4 on Windows platforms.

Details

The panel contains radiobuttons to select the standard normal, t, chi-squared or F distributions. Doublebutton are available to control the degrees of freedom. An observed value can be added to the plot, with optional determination of the corresponding p-value. Alternatively, shaded areas corresponding to tail probabilities of specified value can be displayed.

Value

the name of the panel object.

References

rpanel: Simple interactive controls for R functions using the tcltk package. Journal of Statistical Software, 17, issue 9.

Examples

if (interactive()) {
  rp.tables()
  }

[Package rpanel version 1.0-6 Index]