type_2_err_min_size: Gets minimum sample size needed for certain Beta (Type II...

Description Usage Arguments Value

View source: R/type2.R

Description

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.

Usage

1
type_2_err_min_size(alpha, beta, H0, Ha, two_sided = FALSE, sigma = NULL)

Arguments

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

Value

NOT rounded minimum sample size needed (generally round upwards for an upper test)


azc242/collegestats documentation built on Dec. 31, 2020, 7:54 p.m.