meanSampCutoff: Mean sample size and cutoff

Description Usage Arguments Value References Examples

Description

Given type I error, type II error, standard deviation, null mean, and alternative mean, return cutoff (critical region boundary) and sample size.

Usage

1
meanSampCutoff(alpha, beta, null, alt, sd, direction = c("greater", "less"))

Arguments

alpha

Type I error

beta

Type II error

null

the null mean value

alt

the alternative mean value

sd

standard deviation of null and alternative distributions

direction

"greater" (default) or "less"

Value

Cutoff (critical region boundary) and sample size given type I error, type II error, standard deviation, null mean, and alternative mean.

References

Hogg, R. V. and Tanis, E. A. (2006), Probability and Statistical Inference 7e, Pearson, New Jersey. Chapter 9.1.

Examples

1
2
3
4
5
6
# example 9.1-2
meanSampCutoff(a = 0.025,b = 0.05,null = 60,alt = 65,sd = 10)
# problem 9.1-5
meanSampCutoff(a = 0.05,b = 0.05,null = 1.5,alt = 1.7,sd = sqrt(0.09))
# problem 9.1-7
meanSampCutoff(a = 0.05,b = 0.10,null = 715,alt = 650,sd = 140, direction = "less")

clayford/nandc documentation built on May 13, 2019, 7:38 p.m.