<br><br><div>One widely recommended approach to increase power is using a within subject design. Indeed, you need fewer participants to detect a mean difference between two conditions in a within-subjects design (in a dependent <i>t</i>-test) than in a between-subjects design (in an independent <i>t</i>-test). The reason is straightforward, but not always explained, and even less often expressed in the easy equation below. The sample size needed in within-designs (<i>NW</i>) relative to the sample needed in between-designs (<i>NB</i>), assuming normal distributions, is (from Maxwell &amp; Delaney, 2004, p. 561, formula 45): </div><div><br></div><div align="center"><span><i>NW</i> = <i>NB</i>(1-ρ)/2</span></div><div><br></div><div>The “/2” part of the equation is due to the fact that in a two-condition within design every participant provides two data-points. The extent to which this reduces the sample size compared to a between-subject design depends on the correlation between the two dependent variables, as indicated by the (1-<span>ρ</span>) part of the equation. If the correlation is 0, a within-subject design simply needs half as many participants as a between-subject design (e.g., 64 instead 128 participants). The higher the correlation, the larger the relative benefit of within designs, and whenever the correlation is negative (up to -1) the relative benefit disappears. Note than when the correlation is -1, you need 128 participants in a within-design and 128 participants in a between-design, but in a within-design you will need to collect two measurements from each participant, making a within design more work than a between-design. However, negative correlations between dependent variables in psychology are rare, and perfectly negative correlations will probably never occur. </div><div><br></div><div>So what does the correlation do so that it increases the power of within designs, or reduces the number of participants you need? Let’s see what effect the correlation has on power by simulating and plotting correlated data. In the R script below, I’m simulating two measurements of IQ scores with a specific sample size (i.e., 10000), mean (i.e., 100 vs 106), standard deviation (i.e., 15), and correlation between the two measurements. The script generates three plots. </div><div><br></div><div>We will start with a simulation where the correlation between measurements is 0. First, we see the two normally distributed IQ measurements, with means of 100 and 106, and standard deviations of 15 (due to the large sample size, the numbers equal the input in the simulation, although small variation might still occur). </div><br><div><br></div><div><a href="https://4.bp.blogspot.com/-j70GOuV-prg/WCcq_wUH4JI/AAAAAAAADzA/Bh9Y7uO17LoBfGf_g-ICGY9HlpIPymVcQCEw/s1600/MeansPlotR0.png"></a></div><div>  </div><div><br></div><div>In the scatter plot, we can see that the correlation between the measurements is indeed 0.</div><div><br></div><div><a href="https://1.bp.blogspot.com/-za9Um96u5K4/WCcq-wzpCdI/AAAAAAAADyk/23t5KM1lzv0cuFXzYH7iwKeY1bZXCpFIQCEw/s1600/CorPlotR0.png"></a></div><div><br></div><div><br></div><div>Now, let’s look at the distribution of the mean differences. The mean difference is -6 (in line with the simulation settings), and the standard deviation is 21. This is also as expected. The standard deviation of the difference scores is <span>√</span>2 times as large as the standard deviation in each measurement, and indeed, 15*<span>√</span>2 = 21.21, which is rounded to 21. This situation where the correlation between measurements is zero equals the situation in an independent <i>t</i>-test, where the correlation between measurements is not taken into account. </div><div><br></div><div><a href="https://3.bp.blogspot.com/-SoKWQ5dlrwc/WCcq_TeE-EI/AAAAAAAADy0/Q_7vlLtPkvsgiaFAcmynYUJn4dGPMVPygCEw/s1600/DifPlotR0.png"></a></div><div><br></div><div><br></div><div>Now let’s increase the correlation between dependent variables to 0.7. </div><div><br></div><div>Nothing has changed when we plot the means:</div><div><br></div><div><a href="https://3.bp.blogspot.com/-rn7HKAfM18A/WCcq_mCMwlI/AAAAAAAADy4/bIDA47scmYIHQEv9KsUCuNvaBedUGqz6gCEw/s1600/MeansPlotR0.7.png"></a></div><div><br></div><div><br></div><div></div><div>The correlation between measurements is now strongly positive:</div><div><br></div><div><a href="https://4.bp.blogspot.com/-q1tdyu93Ny8/WCcq-9m_6sI/AAAAAAAADyg/Y83G-VnFttgqpovL4HOqU3h7pQG1zV3BACEw/s1600/CorPlotR0.7.png"></a></div><br>  <br><div>The important difference lies in the standard deviation of the difference scores. The SD = 11 instead of 21 in the simulation above. Because the standardized effect size is the difference divided by the standard deviation, the effect size (Cohen’s dz in within designs) is larger in this test than in the test above.</div><div><br></div><div><a href="https://3.bp.blogspot.com/-uam53mc96Ms/WCcq_c4ryvI/AAAAAAAADys/yet6w3WTvug2Crk1doO0StEEamxcq2NvwCEw/s1600/DifPlotR0.7.png"></a></div><div><br></div><div><br></div><div>We can make the correlation more extreme, by increasing the correlation to 0.99, after which the standard deviation of the difference scores is only 2. </div><div><br></div><div><a href="https://4.bp.blogspot.com/-eO60zKBAMUQ/WCcq_YCa35I/AAAAAAAADyw/aoI8wQbpdWsGSznnXU-Jp2oYEJu9dGfpQCEw/s1600/DifPlotR0.99.png"></a></div><div><br></div><div><br></div><div>If you run the R code below, you will see that if you set the correlation to a negative value, the standard deviation of the difference scores actually increases. </div><div><br></div><div>I like to think of dependent variables in within-designs as dance partners. If they are well-coordinated (or highly correlated), one person steps to the left, and the other person steps to the left the same distance. If there is no coordination (or no correlation), when one dance partner steps to the left, the other dance partner is just as likely to move to the wrong direction as to the right direction. Such a dance couple will take up a lot more space on the dance floor. </div><div><br></div><div>You see that the correlation between dependent variables is an important aspect of within designs. I recommend explicitly reporting the correlation between dependent variables in within designs (e.g., <span>participants responded significantly slower (<i>M</i> = 390, <i>SD</i> = 44) when they used their feet than when they used their hands (<i>M</i> = 371, <i>SD</i> = 44, <i>r</i> = .953), <i>t</i>(17) = 5.98, <i>p</i> &lt; 0.001, Hedges' <i>g</i> = 0.43, <i>Mdiff</i> = 19, 95% CI [12; 26]</span>). </div><div><br></div><div>Since most dependent variables in within designs in psychology are positively correlated, within designs will greatly increase the power you can achieve given the sample size you have available. Use within-designs when possible, but weigh the benefits of higher power against the downsides of order effects or carryover effects that might be problematic in a within-subject design. Maxwell and Delaney's book (Chapter 11) has a good discussion of this topic.<br><br><br><br><div><div>Maxwell, S. E., &amp; Delaney, H. D. (2004). <i>Designing experiments and analyzing data: a model comparison perspective</i> (2nd ed). Mahwah, N.J: Lawrence Erlbaum Associates.</div><span title="url_ver=Z39.88-2004&amp;ctx_ver=Z39.88-2004&amp;rfr_id=info%3Asid%2Fzotero.org%3A2&amp;rft_id=urn%3Aisbn%3A978-0-8058-3718-6&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Designing%20experiments%20and%20analyzing%20data%3A%20a%20model%20comparison%20perspective&amp;rft.place=Mahwah%2C%20N.J&amp;rft.publisher=Lawrence%20Erlbaum%20Associates&amp;rft.edition=2nd%20ed&amp;rft.aufirst=Scott%20E.&amp;rft.aulast=Maxwell&amp;rft.au=Scott%20E.%20Maxwell&amp;rft.au=Harold%20D.%20Delaney&amp;rft.date=2004&amp;rft.tpages=1&amp;rft.isbn=978-0-8058-3718-6"></span></div></div><br><br>