propSampCutoff: Proportion sample size and cutoff

Description Usage Arguments Value References Examples

Description

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

Usage

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

Arguments

alpha

Type I error

beta

Type II error

null

null proportion

alt

alternative proportion

direction

"greater" (default) or "less"

Value

Cutoff (critical region boundary) and sample size given type I error, type II error, null proportion, and alternative proportion

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
# example 9.1-3
propSampCutoff(alpha = 0.05,beta = 0.1,null = 0.5,alt = 0.25,
direction = "less")
# problem 9.1-11
propSampCutoff(alpha = 0.05,beta = 0.1,null = 1/26,alt = 1/10)

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