Learn R Programming

SteppedPower (version 0.1.0)

tTestPwr: Compute Power of a Wald Test

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

Description

Compute Power of a Wald Test

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

Run this code
# NOT RUN {
tTestPwr(4,1,10) ; tTestPwr(4,1,30) ; tTestPwr(4,1,Inf)
# }

Run the code above in your browser using DataLab