Description Usage Arguments Value
This function will find the minimum samples needed to obtain a desired Type II error, or beta. It takes in the significance level, desired Type II error, null hypothesis, actual mean/probability.
1 | type_2_err_min_size(alpha, beta, H0, Ha, two_sided = FALSE, sigma = NULL)
|
alpha |
Probability of Type I error |
beta |
Probability of Type II error |
H0 |
Null hypothesis |
Ha |
Actual mean or probability used with beta |
two_sided |
(Optional) Boolean to determine if it is a 2-sided test or not. Defaults to 1-sided test |
sigma |
(Optional) Standard deviation. Defaults to NULL, for when H0 and Ha are probabilities and not mean values |
NOT rounded minimum sample size needed (generally round upwards for an upper test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.