rp.power {rpanel}R Documentation

Interactive power calculations for a two-sample t-test

Description

This function creates a panel which allows the sample size, population means and common standard deviation to bet set. The correponding power curve is displayed in the graphics window.

Usage

rp.power()

Arguments

None.

Details

The population parameters and sample size are controlled by doublebuttons. The sample size refer to the total sample size, assuming two groups of equal size. A checkbox allows plots of the population distributions also to be diplayed.

Value

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.power()
  }

[Package rpanel version 1.0-6 Index]