<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Omega Squared for ANOVA from F</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>

<table width="100%" summary="page for omega.F"><tr><td>omega.F</td><td style="text-align: right;">R Documentation</td></tr></table>

<h2>Omega Squared for ANOVA from F</h2>

<h3>Description</h3>

<p>This function displays omega squared from ANOVA analyses
and its non-central confidence interval based on the F distribution.
These values are calculated directly from F statistics and can be used
for between subjects and repeated measures designs.
Remember if you have two or more IVs, these values are partial omega squared.
</p>


<h3>Usage</h3>

<pre>
omega.F(dfm, dfe, Fvalue, n, a = 0.05)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>dfm</code></td>
<td>
<p>degrees of freedom for the model/IV/between</p>
</td></tr>
<tr valign="top"><td><code>dfe</code></td>
<td>
<p>degrees of freedom for the error/residual/within</p>
</td></tr>
<tr valign="top"><td><code>Fvalue</code></td>
<td>
<p>F statistic</p>
</td></tr>
<tr valign="top"><td><code>n</code></td>
<td>
<p>full sample size</p>
</td></tr>
<tr valign="top"><td><code>a</code></td>
<td>
<p>significance level</p>
</td></tr>
</table>


<h3>Details</h3>

<p>Omega squared or partial omega squared is calculated by subtracting one
from the F-statistic and multiplying it by degrees of freedom of the model. This is
divided by the same value after adding the number of valid responses. This
value will be omega squared for one-way ANOVA designs, and will be
partial omega squared for multi-way ANOVA designs (i.e. with more than one IV).
</p>
<p>omega^2 = (dfm * (Fvalue-1)) / ((dfm * (Fvalue-1)) + n)
</p>
<p><a href="https://www.aggieerin.com/shiny-server/tests/omegaf.html">Learn more on our example page.</a>
</p>


<h3>Value</h3>

<p>The effect size (Cohen's d) with associated confidence intervals
and relevant statistics.
</p>
<table summary="R valueblock">
<tr valign="top"><td><code>omega</code></td>
<td>
<p>omega statistic</p>
</td></tr>
<tr valign="top"><td><code>omegalow</code></td>
<td>
<p>lower level confidence interval d value</p>
</td></tr>
<tr valign="top"><td><code>omegahigh</code></td>
<td>
<p>upper level confidence interval d value</p>
</td></tr>
<tr valign="top"><td><code>dfm</code></td>
<td>
<p>degrees of freedom for the model/IV/between</p>
</td></tr>
<tr valign="top"><td><code>dfe</code></td>
<td>
<p>degrees of freedom for the error/residual/within</p>
</td></tr>
<tr valign="top"><td><code>F</code></td>
<td>
<p>F-statistic</p>
</td></tr>
<tr valign="top"><td><code>p</code></td>
<td>
<p>p-value</p>
</td></tr>
<tr valign="top"><td><code>estimate</code></td>
<td>
<p>the omega squared statistic and confidence interval in
APA style for markdown printing</p>
</td></tr>
<tr valign="top"><td><code>statistic</code></td>
<td>
<p>the F-statistic in APA style for markdown printing</p>
</td></tr>
</table>


<h3>Examples</h3>

<pre>

#The following example is derived from the "bn1_data" dataset, included
#in the MOTE library.

#A health psychologist recorded the number of close inter-personal
#attachments of 45-year-olds who were in excellent, fair, or poor
#health. People in the Excellent Health group had 4, 3, 2, and 3
#close attachments; people in the Fair Health group had 3, 5,
#and 8 close attachments; and people in the Poor Health group
#had 3, 1, 0, and 2 close attachments.

anova_model = lm(formula = friends ~ group, data = bn1_data)
summary.aov(anova_model)

omega.F(dfm = 2, dfe = 8,
      Fvalue = 5.134, n = 11, a = .05)
</pre>


</body></html>
