n.oneway: Calculates the required sample size for a one-way ANOVA.

Description Usage Arguments Value References Examples

Description

Calculates the required sample size for a one-way ANOVA.

Usage

1
n.oneway(iv = iv, sig.level = 0.05, power = 0.8)

Arguments

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

Value

Returns the recommended sample size given the conditions to achieve the desired power.

References

Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Hillsdale, N.J.: Lawrence Erlbaum Associates.

Examples

1
2
3
4
# 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)


Search within the easypower package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.