tpower2g2: Power Function Of The Two Sample Test

Description Usage Arguments Value References Examples

Description

computes power function for two-sample t-testfor the alternative mu1 > mu2. This test is discussed in Example 4.6.2, page 278. Power functions for two-sample t-tests are discussed in Example 8.3.3 on page 493.

Usage

1
tpower2g2(n, m, Delta, sig, alpha)

Arguments

n

a number, a sample size of first sample related to mu1

m

a number, a sample size of second sample related to mu2

Delta

a number, Delta = mu1 - mu2 is the argument for the power function.

sig

a number, common standard deviation of the 2 populations

alpha

a number, the significance level of the test

Value

a number, gamma the power of the t-test to dectect delta

References

Hogg, R. McKean, J. Craig, A. (2018) Introduction to Mathematical Statistics, 8th Ed. Boston: Pearson.

Examples

1
2
3
4
5
6
n <- 20
m <- 15
Delta <- 5
sig <- 10
alpha <- 0.05
tpower2g2(n, m, Delta, sig, alpha)

joemckean/mathstat documentation built on May 30, 2019, 2:01 p.m.