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

wp.kanovaR Documentation

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

########## 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)


WebPower documentation built on Oct. 14, 2023, 1:06 a.m.