Learn R Programming

WebPower (version 0.9.4)

wp.kanova: Power analysis for two-way, three-way and k-way ANOVA

Description

Power analysis for two-way, three-way and k-way ANOVA

Usage

wp.kanova(n = NULL, ndf = NULL, f = NULL, ng = NULL, alpha = 0.05, power = NULL)

Arguments

n

Sample size

ndf

Numerator degrees of freedom

f

Effect size

ng

Number of groups

alpha

Significance level

power

Statistical power

References

Zhang, Z., & Yuan, K.-H. (2018). Practical Statistical Power Analysis Using Webpower and R (Eds). Granger, IN: ISDSA Press.

Examples

Run this code
########## Chapter 6. two-way and three-way ANOVA  #############
## Main effect of two-way ANOVA
wp.kanova(n=120, ndf=2, f=0.2, alph=0.05, ng=6)

## Interaction effect of two-way ANOVA
wp.kanova(n=120, ndf=2, f=0.4, alph=0.05, ng=6)

## Interaction effect of three-way ANOVA
wp.kanova(n=360, ndf=4, f=0.3, alph=0.05, ng=18)

Run the code above in your browser using DataLab