tpowerg2: Graphs a Two Sample T-Test

Description Usage Arguments Value References Examples

Description

Graphs the power of the one-sample, two-sided $t$-test for the mean. The hypothese are:
H0: mu = mu0 vs. H1: mu != mu0.
See Example 8.3.2 on page 492 for discussion of this test andits power. Exercise 8.3.5 continues the discussion.

Usage

1
tpowerg2(mu0, sig, n, alpha = 0.05, byv = 0.1)

Arguments

mu0

a number, null population mean null value

sig

a number, population standard deviation usually greater than 1

n

an integer, sample size

alpha

a number, the signifigance level, defaults to 0.05

byv

a number, increment in sequence for mu 1, defaults to 0.1

Value

gammas vector of powers from power function

References

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

Examples

1
2
3
4
5
6
mu0 <- 50
sig <- 10
n <- 25
alpha <- .04
byv <- .15
tpowerg2(mu0, sig, n, alpha, byv)

austinragotzy/mathstat documentation built on May 13, 2019, 11:30 a.m.