pwr.omegasq: Power calculations for Omega Squared.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/pwr.omegasq.R

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

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

Details

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

Value

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

power

The (specified or computed) power

n

The (specified or computed) sample size in each group

sig.level

The (specified or computed) significance level (alpha)

sig.level

The (specified or computed) Omega Squared value

cohensf

The computed value for the Cohen's f effect size measure

Author(s)

Gjalt-Jorn Peters & Peter Verboon

Maintainer: Gjalt-Jorn Peters <gjalt-jorn@userfriendlyscience.com>

See Also

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

Examples

1
pwr.omegasq(omegasq=.06, k=3, power=.8)

Example output

sh: 1: cannot create /dev/null: Permission denied

     Balanced one-way analysis of variance power calculation

              k = 3
              n = 51.3264
        omegasq = 0.06
      sig.level = 0.05
          power = 0.8

NOTE: n is number in each group

userfriendlyscience documentation built on May 2, 2019, 1:09 p.m.