userfriendlyscience (version 0.5-2)

pwr.omegasq: Power calculations for Omega Squared.

Description

This function uses pwr.anova.test from the pwr package in combination with convert.cohensf.to.omegasq and convert.omegasq.to.cohensf to provide power analyses for Omega Squared.

Usage

pwr.omegasq(k = NULL, n = NULL, omegasq = NULL, sig.level = 0.05, power = NULL, digits = 4)

Arguments

k
The number of groups.
n
The sample size.
omegasq
The Omega Squared value.
sig.level
The significance level (alpha).
power
The power.
digits
The number of digits desired in the output (4, the default, is quite high; but omega squared value tend to be quite low).

Value

An power.htest.usf object that contains a number of input and output values, most notably:

Details

This function was written to work similarly to the power functions in the pwr package.

See Also

pwr.anova.test, convert.cohensf.to.omegasq, convert.omegasq.to.cohensf

Examples

Run this code
pwr.omegasq(omegasq=.06, k=3, power=.8)

Run the code above in your browser using DataLab