powered by
Calculates the required sample size for a one-way ANOVA.
n.oneway(iv = iv, sig.level = 0.05, power = 0.8)
Returns the recommended sample size given the conditions to achieve the desired power.
power
List of data for the treatment to be tested.
Desired significance level (default is 0.05).
Desired level of power (default is 0.80).
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)
Run the code above in your browser using DataLab