<?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: How to get Tukey grouping in Proc Mixed? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-Tukey-grouping-in-Proc-Mixed/m-p/258267#M268963</link>
    <description>&lt;P&gt;If I understand your question, I think you are asking for graphical techniques to determine significant differences between groups. The old LINES option is not the best at that task. In fact, in Westfall et al, &lt;EM&gt;Multiple Comparisons and Multiple&amp;nbsp;Tests,&lt;/EM&gt; the authors show an example (p. 69-70) in which the LINES output is misleading and write "our purpose in showing this analysis is to &lt;STRONG&gt;discourage&lt;/STRONG&gt; [their emphasis] you from using it" with unequal sample sizes because it "can lead to incorrect inferences."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Due to the influential book by Hsu (1996), other graphical approaches have been implemented in SAS. A favoriate of many is the "diffogram," which you can request on the LSMEANS statement by using&lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_introcom_sect040.htm" target="_self"&gt; the PLOTS=DIFFOGRAM option&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more about graphical comparisons of LSMEANS, see the excellent papers by Robin High:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://www.mwsug.org/proceedings/2011/dataviz/MWSUG-2011-DG08.pdf" target="_self"&gt;"Interpreting the Differences Among LSMEANS in Generalized Linear Models" (2011)&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://www.mwsug.org/proceedings/2015/PH/MWSUG-2015-PH-06.pdf" target="_self"&gt;"Plotting LSMEANS and Differences in Generalized Linear Models with GTL" (2015)&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Tue, 22 Mar 2016 16:56:02 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2016-03-22T16:56:02Z</dc:date>
    <item>
      <title>How to get Tukey grouping in Proc Mixed?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-Tukey-grouping-in-Proc-Mixed/m-p/258098#M268960</link>
      <description>&lt;P&gt;Hello! I like to use Tukey Groupings in Proc GLM and GLIMMIX but is it possible to get Tukey groupings in Proc Mixed? Here is some example code. Thank you!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mixed;&lt;BR /&gt;class trt ID;&lt;BR /&gt;model logng=trt;&lt;BR /&gt;lsmeans trt/adjust=tukey;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 21:20:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-Tukey-grouping-in-Proc-Mixed/m-p/258098#M268960</guid>
      <dc:creator>amd9663</dc:creator>
      <dc:date>2016-03-21T21:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Tukey grouping in Proc Mixed?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-Tukey-grouping-in-Proc-Mixed/m-p/258214#M268961</link>
      <description>&lt;P&gt;The &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_mixed_syntax08.htm" target="_self"&gt;documentation for the LSMEANS statement in PROC MIXED&lt;/A&gt;&amp;nbsp;indicates that it supports the ADJUST=tukey. So I'd say "yes," provided that you remember it is for fixed effects only.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 14:40:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-Tukey-grouping-in-Proc-Mixed/m-p/258214#M268961</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-22T14:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Tukey grouping in Proc Mixed?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-Tukey-grouping-in-Proc-Mixed/m-p/258243#M268962</link>
      <description>&lt;P&gt;Thanks for the reply! Do you know how to write code in Mixed that tells SAS to do the Tukey groupings? In the code I provided, I get the Tukey-adjusted P-values but have to figure out the groupings (e.g., A, B, C; &amp;nbsp;LS-means with the same letter are not significantly different) on my own. It is not hard to do, but I want SAS do it for me! I know how to do it in GLM and GLIMMIX (the lines option) just not in Mixed (the lines option does not work). Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 16:02:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-Tukey-grouping-in-Proc-Mixed/m-p/258243#M268962</guid>
      <dc:creator>amd9663</dc:creator>
      <dc:date>2016-03-22T16:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Tukey grouping in Proc Mixed?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-Tukey-grouping-in-Proc-Mixed/m-p/258267#M268963</link>
      <description>&lt;P&gt;If I understand your question, I think you are asking for graphical techniques to determine significant differences between groups. The old LINES option is not the best at that task. In fact, in Westfall et al, &lt;EM&gt;Multiple Comparisons and Multiple&amp;nbsp;Tests,&lt;/EM&gt; the authors show an example (p. 69-70) in which the LINES output is misleading and write "our purpose in showing this analysis is to &lt;STRONG&gt;discourage&lt;/STRONG&gt; [their emphasis] you from using it" with unequal sample sizes because it "can lead to incorrect inferences."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Due to the influential book by Hsu (1996), other graphical approaches have been implemented in SAS. A favoriate of many is the "diffogram," which you can request on the LSMEANS statement by using&lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_introcom_sect040.htm" target="_self"&gt; the PLOTS=DIFFOGRAM option&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more about graphical comparisons of LSMEANS, see the excellent papers by Robin High:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://www.mwsug.org/proceedings/2011/dataviz/MWSUG-2011-DG08.pdf" target="_self"&gt;"Interpreting the Differences Among LSMEANS in Generalized Linear Models" (2011)&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://www.mwsug.org/proceedings/2015/PH/MWSUG-2015-PH-06.pdf" target="_self"&gt;"Plotting LSMEANS and Differences in Generalized Linear Models with GTL" (2015)&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 22 Mar 2016 16:56:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-Tukey-grouping-in-Proc-Mixed/m-p/258267#M268963</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-22T16:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Tukey grouping in Proc Mixed?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-Tukey-grouping-in-Proc-Mixed/m-p/258316#M268964</link>
      <description>&lt;P&gt;Awesome! Thank you so much. I tried adding it to the LSMEANS statement (as below) but it would not run. Can you make any suggestions to this code? Thank you!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mixed;&lt;BR /&gt;class trt ID;&lt;BR /&gt;model logng=trt;&lt;BR /&gt;lsmeans trt/adjust=tukey plots=diffogram;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 18:27:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-Tukey-grouping-in-Proc-Mixed/m-p/258316#M268964</guid>
      <dc:creator>amd9663</dc:creator>
      <dc:date>2016-03-22T18:27:33Z</dc:date>
    </item>
  </channel>
</rss>

