type_2_err: Generates probability of Type II error

Description Usage Arguments Value

View source: R/type2.R

Description

This function generates the probability of having a type II error given the null hypothesis, what the alternate hypothesis tests (higher, lower, or not equals to), the actual probability/mean, sample size, and significance level alpha

Usage

1
type_2_err(H0, Ha, mu_alt, n, alpha, sigma = NULL)

Arguments

H0

Null hypothesis

Ha

Direction of the test, valid arguments are either "<", ">", or "!="

mu_alt

True mean or probability

n

Sample size

alpha

Significance level/Type I error probability/alpha level

sigma

(Optional) population standard deviation

Value

probability of Type II error


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