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.
pwr.omegasq(
k = NULL,
n = NULL,
omegasq = NULL,
sig.level = 0.05,
power = NULL,
digits = 4
)
# S3 method for pwr.omegasq
print(x, digits = x$digits, ...)
The number of groups.
The sample size.
The Omega Squared value.
The significance level (alpha).
The power.
The number of digits desired in the output (4, the default, is quite high; but omega squared value tend to be quite low).
The object to print.
Additional arguments are ignored.
An power.htest.ufs
object that contains a number of input and
output values, most notably:
The (specified or computed) power
The (specified or computed) sample size in each group
The (specified or computed) significance level (alpha)
The (specified or computed) Omega Squared value
The computed value for the Cohen's f effect size measure
This function was written to work similarly to the power functions in the
pwr
package.
pwr.anova.test
,
convert.cohensf.to.omegasq
,
convert.omegasq.to.cohensf
pwr.omegasq(omegasq=.06, k=3, power=.8)
#> $k
#> [1] 3
#>
#> $n
#> [1] 51.32635
#>
#> $omegasq
#> [1] 0.06
#>
#> $sig.level
#> [1] 0.05
#>
#> $power
#> [1] 0.8
#>
#> $digits
#> [1] 4
#>
#> $es
#> [1] "omegasq"
#>
#> $note
#> [1] "n is number in each group"
#>
#> $method
#> [1] "Balanced one-way analysis of variance power calculation"
#>
#> $cohensf
#> [1] 0.2526456
#>
#> attr(,"class")
#> [1] "pwr.omegasq"