Learn R Programming

rpsychi (version 0.3)

power.f2: Statistical power for F tests on means in the two-way analysis of variance

Description

This is an internal function. power.f2 computes statistical power for F tests on means in the two-way analysis of variance.

Usage

power.f2(df1, df2, delta, sig.level = 0.05)

Arguments

df1
degree of freedom of the numerator of the F ratio
df2
degree of freedom of the denominator of the F ratio
delta
Cohen's $f$
sig.level
a numeric contains the significance level (default 0.05)

Value

  • Return a numeric containing the statistical power.

encoding

UTF-8

References

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

Examples

Run this code
##Cohen (1988) ex 8.6
power.f2(df1=1,df2=96,sig.level=0.05,delta=.10)
power.f2(df1=2,df2=96,sig.level=0.05,delta=.25)
power.f2(df1=3,df2=96,sig.level=0.05,delta=.40)

power.f2(df1=1,df2=120,sig.level=0.05,delta=.10)
power.f2(df1=2,df2=120,sig.level=0.05,delta=.25)
power.f2(df1=3,df2=120,sig.level=0.05,delta=.40)

Run the code above in your browser using DataLab