<?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 Compact letter display for Tukey or MCP in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Compact-letter-display-for-Tukey-or-MCP/m-p/824632#M325670</link>
    <description>&lt;P&gt;I use proc glm, and glimmix mostly.&lt;/P&gt;&lt;P&gt;I like seeing the residual plots that I get from "plots=" statements in the procedure call.&lt;/P&gt;&lt;P&gt;With ods graphics on I get the residuals plots and I get a bar plot of differences from the multiple comparison procedure (MCP)&lt;/P&gt;&lt;P&gt;With ods graphics off I do not get the residuals plots but I get the results from the MCP as a compact letter display format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Must I run the analysis twice to get the residuals plots and the MCP as a compact letter display?&lt;/P&gt;&lt;P&gt;I tried "ods graphics on" right before the "proc glm" statement and an "ods graphics off" right afterwards and that did not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2022 13:15:20 GMT</pubDate>
    <dc:creator>tebert</dc:creator>
    <dc:date>2022-07-21T13:15:20Z</dc:date>
    <item>
      <title>Compact letter display for Tukey or MCP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Compact-letter-display-for-Tukey-or-MCP/m-p/824632#M325670</link>
      <description>&lt;P&gt;I use proc glm, and glimmix mostly.&lt;/P&gt;&lt;P&gt;I like seeing the residual plots that I get from "plots=" statements in the procedure call.&lt;/P&gt;&lt;P&gt;With ods graphics on I get the residuals plots and I get a bar plot of differences from the multiple comparison procedure (MCP)&lt;/P&gt;&lt;P&gt;With ods graphics off I do not get the residuals plots but I get the results from the MCP as a compact letter display format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Must I run the analysis twice to get the residuals plots and the MCP as a compact letter display?&lt;/P&gt;&lt;P&gt;I tried "ods graphics on" right before the "proc glm" statement and an "ods graphics off" right afterwards and that did not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 13:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Compact-letter-display-for-Tukey-or-MCP/m-p/824632#M325670</guid>
      <dc:creator>tebert</dc:creator>
      <dc:date>2022-07-21T13:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Compact letter display for Tukey or MCP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Compact-letter-display-for-Tukey-or-MCP/m-p/824783#M325755</link>
      <description>&lt;P&gt;PROC GLM is an interactive procedure, which means that you can use one PROC/RUN block to set up the model and analyze the data, and additional RUN blocks for further analysis. So you can turm ODS graphics ON and create the lines plot, then turn it OFF and get the table that contains the letters:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data wloss;
do diet = 'A','B','C','D','E';
   do i = 1 to 10;  input WeightLoss @@;  output;  end;
end;
datalines;
12.4 10.7 11.9 11.0 12.4 12.3 13.0 12.5 11.2 13.1
 9.1 11.5 11.3  9.7 13.2 10.7 10.6 11.3 11.1 11.7
 8.5 11.6 10.2 10.9  9.0  9.6  9.9 11.3 10.5 11.2
 8.7  9.3  8.2  8.3  9.0  9.4  9.2 12.2  8.5  9.9
12.7 13.2 11.8 11.9 12.2 11.2 13.7 11.8 11.5 11.7
;

ods graphics on;
proc glm data=wloss;
   class diet;
   model WeightLoss = diet;
   lsmeans diet / pdiff=all adjust=tukey LINES;   /* get Lines Plot */
run;
   ods graphics off;
   lsmeans diet / pdiff=all adjust=tukey LINES;  /* get table display */
run;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jul 2022 20:56:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Compact-letter-display-for-Tukey-or-MCP/m-p/824783#M325755</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-07-21T20:56:01Z</dc:date>
    </item>
  </channel>
</rss>

