Description Usage Arguments Value References Examples
Given type I error, type II error, null proportion, and alternative proportion, return cutoff (critical region boundary) and sample size.
1 | propSampCutoff(alpha, beta, null, alt, direction = c("greater", "less"))
|
alpha |
Type I error |
beta |
Type II error |
null |
null proportion |
alt |
alternative proportion |
direction |
"greater" (default) or "less" |
Cutoff (critical region boundary) and sample size given type I error, type II error, null proportion, and alternative proportion
Hogg, R. V. and Tanis, E. A. (2006), Probability and Statistical Inference 7e, Pearson, New Jersey. Chapter 9.1.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.