Learn R Programming

powerMediation (version 0.2.3)

powerInteract: Power for detecting interaction effect in 2-way ANOVA

Description

Power for detecting interaction effect in 2-way ANOVA.

Usage

powerInteract(nTotal, a, b, effsize, alpha = 0.05, nTests = 1)

Arguments

nTotal
number of observations in total
a
number of levels in factor 1
b
number of levels in factor 2
effsize
effect size
alpha
type I error rate
nTests
number of tests. (Family-wise type I error rate will be controlled based on Bonferroni's correction)

Value

  • power

Examples

Run this code
powerInteract(nTotal=50, a=2, b=3, effsize=1.5, alpha=0.05, nTests=1)

Run the code above in your browser using DataLab