n.oneway | R Documentation |
Calculates the required sample size for a one-way ANOVA.
n.oneway(iv = iv, sig.level = 0.05, power = 0.8)
iv |
List of data for the treatment to be tested. |
sig.level |
Desired significance level (default is 0.05). |
power |
Desired level of power (default is 0.80). |
Returns the recommended sample size given the conditions to achieve the desired power
.
Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Hillsdale, N.J.: Lawrence Erlbaum Associates.
# Exercise 8.10, p.391 from Cohen (1988)
main.eff <- list(name = "Teaching", levels = 4, eta.sq = 0.0588)
# Running the function with default settings
n.oneway(iv = main.eff)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.