<?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: SAS code for tukey tests in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-tukey-tests/m-p/478021#M5899</link>
    <description>&lt;P&gt;I may be missing something but the use of the &lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glm_details02.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en#statug.glm.glm_barop" target="_self"&gt;bar (pipe) operator&lt;/A&gt; should not make a difference since it is equivalent to listing the factors separately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead, I believe the issue is that the tukey option can only be used with main effects.&amp;nbsp; As per the &lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glm_syntax15.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;PROC GLM documentation for the MEANS statement&lt;/A&gt;, "multiple comparisons tests apply only to main effects," and for the &lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glm_syntax15.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en#statug.glm.means_opt_tukey" target="_self"&gt;TUKEY option&lt;/A&gt; it states that it "performs Tukey’s studentized range test (HSD) on all main-effect means in the MEANS statement."&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;means A B / tukey;
means A*B;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;produces the same results as&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;means A B A*B / tukey;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;since the interaction effect will be ignored by Tukey's test.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jul 2018 20:07:54 GMT</pubDate>
    <dc:creator>BrianGaines</dc:creator>
    <dc:date>2018-07-13T20:07:54Z</dc:date>
    <item>
      <title>SAS code for tukey tests</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-tukey-tests/m-p/477664#M5887</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run a tukey&amp;nbsp;test after the annova&lt;/P&gt;&lt;P&gt;with this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data new; set mpa;&lt;BR /&gt;proc glm;&lt;BR /&gt;class fabric laundry time temperature;&lt;BR /&gt;model deltae=fabric|laundry|time|temperature;&lt;BR /&gt;means fabric*laundry*time*temperature; means fabric*laundry*time*temperature;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm;&lt;BR /&gt;class fabric laundry time temperature;&lt;BR /&gt;model deltae=fabric|laundry|time|temperature;&lt;BR /&gt;means fabric*laundry*time*temperature/tukey lines;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think i am mistaking the second part..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please give me a light on that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 19:35:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-tukey-tests/m-p/477664#M5887</guid>
      <dc:creator>palominm</dc:creator>
      <dc:date>2018-07-12T19:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code for tukey tests</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-tukey-tests/m-p/478018#M5898</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/220770"&gt;@palominm&lt;/a&gt;!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One issue that I see with your PROC GLM is that you have the pipes | in your model statement. Those should not be necessary. In all of the examples I see they just list their dependent variables with spaces in between the variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That could be an issue, however it may not be the only one. Did you received an error in the log when you ran this code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 19:43:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-tukey-tests/m-p/478018#M5898</guid>
      <dc:creator>OliviaWright</dc:creator>
      <dc:date>2018-07-13T19:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code for tukey tests</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-tukey-tests/m-p/478021#M5899</link>
      <description>&lt;P&gt;I may be missing something but the use of the &lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glm_details02.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en#statug.glm.glm_barop" target="_self"&gt;bar (pipe) operator&lt;/A&gt; should not make a difference since it is equivalent to listing the factors separately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead, I believe the issue is that the tukey option can only be used with main effects.&amp;nbsp; As per the &lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glm_syntax15.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;PROC GLM documentation for the MEANS statement&lt;/A&gt;, "multiple comparisons tests apply only to main effects," and for the &lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glm_syntax15.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en#statug.glm.means_opt_tukey" target="_self"&gt;TUKEY option&lt;/A&gt; it states that it "performs Tukey’s studentized range test (HSD) on all main-effect means in the MEANS statement."&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;means A B / tukey;
means A*B;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;produces the same results as&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;means A B A*B / tukey;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;since the interaction effect will be ignored by Tukey's test.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 20:07:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-tukey-tests/m-p/478021#M5899</guid>
      <dc:creator>BrianGaines</dc:creator>
      <dc:date>2018-07-13T20:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code for tukey tests</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-tukey-tests/m-p/478022#M5900</link>
      <description>&lt;P&gt;Ah, I see that now. I never seen anyone use the pipes for this but you are correct!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 20:09:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-tukey-tests/m-p/478022#M5900</guid>
      <dc:creator>OliviaWright</dc:creator>
      <dc:date>2018-07-13T20:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code for tukey tests</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-tukey-tests/m-p/478025#M5901</link>
      <description>&lt;P&gt;Yes, they are very convenient for factorial models!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 20:12:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-tukey-tests/m-p/478025#M5901</guid>
      <dc:creator>BrianGaines</dc:creator>
      <dc:date>2018-07-13T20:12:07Z</dc:date>
    </item>
  </channel>
</rss>

