tTestPwr: Compute Power of a Wald Test

View source: R/helper_functions.R

tTestPwrR Documentation

Compute Power of a Wald Test

Description

Computes the power of a scaled Wald test given a standard error, an effect size, the degrees of freedom of the t-distribution and a significance level. Computes the exact power, see second example

Usage

tTestPwr(d, se, df, sig.level = 0.05)

Arguments

d

numeric, raw effect

se

numeric, standard error

df

numeric, degrees of freedom of the t-distribution

sig.level

numeric, significance level, defaults to 0.05

Value

a scalar

Examples

tTestPwr(4,1,10) ; tTestPwr(4,1,30) ; tTestPwr(4,1,Inf)

PMildenb/SteppedPower documentation built on Sept. 20, 2023, 4:57 a.m.