power: Gets power, or the probability of correctly rejecting the...

Description Usage Arguments Value

View source: R/power.R

Description

This function will return the probability of rejecting the null hypothesis when it is in fact false, given the null hypothesis value, direction of the test, alternative mu value, sample size, significane level alpha, and (optionally) the population standard deviation

Usage

1
power(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.