<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Three-Way ANOVA and Adjusted Tukey Comparisons in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641736#M30685</link>
    <description>&lt;P&gt;By choosing to look at Adj T K values adjusted for all 105 comparisons am I increasing my type 1 error?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2020 20:00:14 GMT</pubDate>
    <dc:creator>ANKH1</dc:creator>
    <dc:date>2020-04-21T20:00:14Z</dc:date>
    <item>
      <title>Three-Way ANOVA and Adjusted Tukey Comparisons</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641698#M30679</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In a 3-Way ANOVA analyses, is it possible to decide a priori what comparisons between different factors we want to look at? We would like to look at tukey's where there is a two factor interaction. Is this valid since tukey's uses adjusted p values per tested comparison?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code for the overall 3 Way ANOVA (2*2*2):&lt;/P&gt;&lt;P&gt;PROC GLIMMIX DATA= data;&lt;BR /&gt;CLASS id dose form gen;&lt;BR /&gt;MODEL var= dose|form|gen;&lt;BR /&gt;RANDOM residual/ subject = ID type=CS;&lt;BR /&gt;LSMEANS dose|form|gen /ADJUST=TUKEY;&lt;BR /&gt;RUN;QUIT;&lt;/P&gt;&lt;P&gt;These are the results for type 3 effects&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 414px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38532iE72236C0D655C3ED/image-dimensions/414x206?v=v2" width="414" height="206" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the output where a two factor interaction was found:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38531i88B83B0058A812B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 17:59:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641698#M30679</guid>
      <dc:creator>ANKH1</dc:creator>
      <dc:date>2020-04-21T17:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Three-Way ANOVA and Adjusted Tukey Comparisons</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641720#M30681</link>
      <description>&lt;P&gt;It is possible to make those &lt;EM&gt;a prior&lt;/EM&gt;i comparisons, and then use Tukey's adjustment on them.&amp;nbsp; Welcome to the LSMESTIMATE statement.&amp;nbsp; You can (carefully) plug in what you want to compare (say, level 1 of dose to level 2 of dose at level 1 of form AND at level 2 of form) with something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmestimate dose*form 'level 1 of dose v level 2 of dose at level 1 of form' 1 -1 0 0,
                      'level 1 of dose v level 2 of dose at level 12of form' 0 0 1 -1/adjust=tukey;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Based on your F tests, that is probably not one of the comparisons you might be interested in, but it should give you the idea of how to set up what you are interested in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 19:19:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641720#M30681</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-04-21T19:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Three-Way ANOVA and Adjusted Tukey Comparisons</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641724#M30682</link>
      <description>&lt;P&gt;Shoot.&amp;nbsp; i have a typo in the box.&amp;nbsp; It should read:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmestimate dose*form 'level 1 of dose v level 2 of dose at level 1 of form' 1 -1 0 0,
                      'level 1 of dose v level 2 of dose at level 2 of form' 0 0 1 -1/adjust=tukey;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The snippet of output that you showed reveals that Tukey's is adjusting for all possible comparisons (and I assume that 2 of them were cut off, as there should be 6), whereas this approach only looks at the simple effect of dose at each level of form.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 19:28:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641724#M30682</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-04-21T19:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Three-Way ANOVA and Adjusted Tukey Comparisons</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641733#M30683</link>
      <description>&lt;P&gt;Thank you! Sorry about the two missing lines for tukey's. What if I want to look at all pairwise comparisons between lsmeans calculated from the output?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura.PNG" style="width: 609px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38533i86DE4E3DD645F015/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura.PNG" alt="Captura.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is it valid to look at all 6 pairwise comparisons coming from tukey-kramer from my previous output?&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 19:48:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641733#M30683</guid>
      <dc:creator>ANKH1</dc:creator>
      <dc:date>2020-04-21T19:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Three-Way ANOVA and Adjusted Tukey Comparisons</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641734#M30684</link>
      <description>&lt;P&gt;Well, you can do that, but be aware that the way you have it set up right now, it adjusts for all 105 pairwise comparisons, including main effects, 2 way interactions and 3 way interactions (hope my combinatorics calculations are correct).&amp;nbsp; Are you sure that all of those are of interest?&amp;nbsp; If so, then the T-K adjusted p values (last column of the Differences table in the output) are the ones you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 19:57:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641734#M30684</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-04-21T19:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Three-Way ANOVA and Adjusted Tukey Comparisons</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641736#M30685</link>
      <description>&lt;P&gt;By choosing to look at Adj T K values adjusted for all 105 comparisons am I increasing my type 1 error?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 20:00:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641736#M30685</guid>
      <dc:creator>ANKH1</dc:creator>
      <dc:date>2020-04-21T20:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Three-Way ANOVA and Adjusted Tukey Comparisons</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641798#M30686</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt; makes the &lt;STRONG&gt;perfect point&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my opinion, once you move past Tukey-adjusted comparisons of &lt;EM&gt;main effect means&lt;/EM&gt;, then you need to think about how to interpret interaction in your particular scenario and what comparisons (i.e., research hypotheses) are appropriate. Interaction is, fundamentally, comparisons of pairwise comparisons. Except in the simplest of cases, pairwise comparisons among interaction means will &lt;EM&gt;not&lt;/EM&gt; give you the insight you need for higher order interactions. And if you use Tukey adjusted pairwise comparisons, you are controlling for &lt;EM&gt;way more&lt;/EM&gt; comparisons that you intend (that was Steve's point).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I &lt;EM&gt;never&lt;/EM&gt; apply Tukey to all pairwise comparisons of interaction means. That approach is answering the wrong question. I think about my research question (hopefully I've done that BEFORE I collected my data), and then I pose hypotheses that I can express as contrasts that I can test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, it looks subjective if you have not done the work a priori, and you do have to be careful, but if you've done your thinking a priori, then...cool (if uncommon).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 02:42:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641798#M30686</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2020-04-22T02:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Three-Way ANOVA and Adjusted Tukey Comparisons</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641799#M30687</link>
      <description>&lt;P&gt;No, you are not increasing your Type I error. But you are seriously decreasing your power (i.e., you are increasing your Type II error). And you are not really addressing any hypotheses of interest.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 02:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641799#M30687</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2020-04-22T02:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Three-Way ANOVA and Adjusted Tukey Comparisons</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641871#M30696</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1708"&gt;@sld&lt;/a&gt;&amp;nbsp;.&amp;nbsp; I do want to correct one thing - my combinatorics calculation was off.&amp;nbsp; The correct number should be 49 rather than 105;&lt;/P&gt;
&lt;P&gt;Main effects comparisons: 3 (3 times (2take2))&lt;/P&gt;
&lt;P&gt;Two way effects comparisons: 18 (3 times (4take2))&lt;/P&gt;
&lt;P&gt;Three way effects comparisons: 28 (8take2)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, if you adjust in the lsmeans statement with your current syntax, you overadjust and demolish your ability to control the balance between type 1 and type 2 errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LSMESTIMATE enables you to specify the contrasts for the hypotheses of interest, and then make multiplicity adjustments as needed.&amp;nbsp; That "as needed" has spawned an entire cottage industry of multiplicty adjustment methods, papers and arguments.&amp;nbsp; I could make the case that if you specify the comparisons a priori, you should not adjust.&amp;nbsp; I can also make a case for not paying much attention to the p values themselves, but looking at the confidence intervals around the estimated differences. In the end, you have to think long and hard about what questions you need statistical support for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 10:36:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641871#M30696</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-04-22T10:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Three-Way ANOVA and Adjusted Tukey Comparisons</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641958#M30698</link>
      <description>&lt;P&gt;Your posts have been really helpful and I've learned a lot. When using &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;LSMESTIMATE&lt;/SPAN&gt;, can I have one contrast for a two way interaction and one contrast per main effect? Also, do you recommend ADJUST= BON for pairwise comparisons using &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;LSMESTIMATE&lt;/SPAN&gt;? Apparently Tukey is not an option.&lt;/P&gt;&lt;P&gt;Thanks again! &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 14:21:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/641958#M30698</guid>
      <dc:creator>ANKH1</dc:creator>
      <dc:date>2020-04-22T14:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Three-Way ANOVA and Adjusted Tukey Comparisons</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/642054#M30704</link>
      <description>&lt;P&gt;The Bonferroni correction is needlessly conservative.&amp;nbsp; Once you get this many comparisons, you can lose a lot of power to detect real differences if you use Bonferroni.&amp;nbsp; I happen to like this reference&amp;nbsp;&lt;/P&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV id="statug_glm013558" class=" AAbibliography"&gt;
&lt;DIV&gt;
&lt;UL type="disc"&gt;
&lt;LI id="statug_glmedwa_d87" class=" AAbibitem"&gt;
&lt;P&gt;Edwards, D., and Berry, J.&amp;nbsp;J. (1987). “The Efficiency of Simulation-Based Multiple Comparisons.” &lt;SPAN&gt;&lt;EM&gt;Biometrics&lt;/EM&gt;&lt;/SPAN&gt; 43:913–928&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;This method is called by ADJUST=SIMULATE.&amp;nbsp; Be sure to read up on the options for this, especially the SEED= option, so that you can get reproducible results on different machines or at different times.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Apr 2020 18:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/642054#M30704</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-04-22T18:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Three-Way ANOVA and Adjusted Tukey Comparisons</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/642241#M30728</link>
      <description>&lt;P&gt;This is great! I will read this paper. Another last question, with LSESTIMATE I can decide a priori what 2 way comparisons&amp;nbsp; and main effects I am interested in, correct?&lt;/P&gt;&lt;P&gt;Thanks again for your help, it is very much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 14:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/642241#M30728</guid>
      <dc:creator>ANKH1</dc:creator>
      <dc:date>2020-04-23T14:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Three-Way ANOVA and Adjusted Tukey Comparisons</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/642525#M30736</link>
      <description>That is correct.&lt;BR /&gt;&lt;BR /&gt;SteveDenham</description>
      <pubDate>Fri, 24 Apr 2020 11:32:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/642525#M30736</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-04-24T11:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Three-Way ANOVA and Adjusted Tukey Comparisons</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/643289#M30805</link>
      <description>&lt;P&gt;Thank you for all your help!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 13:43:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Three-Way-ANOVA-and-Adjusted-Tukey-Comparisons/m-p/643289#M30805</guid>
      <dc:creator>ANKH1</dc:creator>
      <dc:date>2020-04-27T13:43:09Z</dc:date>
    </item>
  </channel>
</rss>

