wp.kanova | R Documentation |
Power analysis for two-way, three-way and k-way ANOVA
wp.kanova(n = NULL, ndf = NULL, f = NULL, ng = NULL, alpha = 0.05, power = NULL)
n |
Sample size |
ndf |
Numerator degrees of freedom |
f |
Effect size |
ng |
Number of groups |
alpha |
Significance level |
power |
Statistical power |
Zhang, Z., & Yuan, K.-H. (2018). Practical Statistical Power Analysis Using Webpower and R (Eds). Granger, IN: ISDSA Press.
########## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.