r.io/pkg/emmeans/man/emmeans.html">emmeans()</a></code> to calculate the contrast for the main effects, like we did for the one-way ANOVA.</p>
<p>Finally, to calculate effect size for the pairwise comparisons we again need to do this individually using 'cohensD()<code>from</code>lsr`.</p>
<ul>
<li>Run the below code to add on effect sizes to <code>contrasts_factorial</code> and <code>contrasts_factorial2</code>.</li>
</ul>
<div class="sourceCode" id="cb312"><pre class="downlit sourceCode r">
<code class="so