<?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: Compact letter display for proc glimmix with lsmestimate in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Compact-letter-display-for-proc-glimmix-with-lsmestimate/m-p/548715#M27390</link>
    <description>&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;I found out that&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmeans f1*f2 / pdiff slice=(f1 f2) slicediff=(f1 f2) adjust=bon lines;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;basically &lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;does the same thing as my lsmestimate list of comparisons. With this I get the 'Simple Effect Comparisons of f1*f2 Least Squares Means By f2' and &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;analogously for 'By f1'. The problem in here is that the &lt;FONT face="courier new,courier"&gt;slicediff&lt;/FONT&gt; statement applies multiplicity adjustment only per slicediff-factor-level, i.e. within each level of each factor not for all comparisons simultaneously. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;I can solve this by using&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc multtest inpvalues(Probt)=SliceDiffs bonferroni;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;and get the same adjusted p-values as in my manual lsmestimates, which is nice so far.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;For the letter display I tried to make good use of the &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;&lt;A href="https://www.researchgate.net/publication/286956968_A_SAS_macro_for_generating_letter_displays_of_pairwise_mean_comparisons" target="_self"&gt;%MULT macro by Piepho&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;Unfortunately, this again contains all comparisons, even those that are of no interest to me.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;Does that make sense at all oder do I want too much from Statistics or SAS?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2019 08:34:58 GMT</pubDate>
    <dc:creator>lotcarrots</dc:creator>
    <dc:date>2019-04-05T08:34:58Z</dc:date>
    <item>
      <title>Compact letter display for proc glimmix with lsmestimate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Compact-letter-display-for-proc-glimmix-with-lsmestimate/m-p/548497#M27379</link>
      <description>&lt;P&gt;In proc glimmix multiple comparisons exist for &lt;FONT face="courier new,courier"&gt;lsmeans&lt;/FONT&gt; by &lt;FONT face="courier new,courier"&gt;pdiff&lt;/FONT&gt; combined with &lt;FONT face="courier new,courier"&gt;adjust&lt;/FONT&gt;, e.g.&lt;FONT face="courier new,courier"&gt; PDIFF=ALL ADJUST=&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;bon &lt;/FONT&gt;(yes, tukey would be the better choice, still I'd like to use bonferroni). I can get the compact letter display (cld) with an additional &lt;FONT face="courier new,courier"&gt;lines&lt;/FONT&gt; statement.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmeans f1*f2 / PDIFF=ALL ADJUST=&lt;FONT face="courier new,courier"&gt;bon &lt;/FONT&gt;LINES;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;With this code I request all tukey-comparisons (all combinations) but I am just interested in a few. Therefore I coded my comparisons of interest with &lt;FONT face="courier new,courier"&gt;lsmestimate&lt;/FONT&gt;. To adjust for multiple comparisons I use &lt;FONT face="courier new,courier"&gt;adjust=bon adjdfe=row&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmestimate f1*f2 'comp1' [1, 1 1] [-1, 2 1],
                            'comp2' [1, 1 1] [-1, 3 1],
			    'comp3' [1, 1 1] [-1, 4 1],
			    'comp4' [1, 2 1] [-1, 3 1],
				... / cl adjust=bon adjdfe=row;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now my question: Is it possible to get a letter display only for those comparisons of interest and not all tukey-ones as in &lt;FONT face="courier new,courier"&gt;lsmeans&lt;/FONT&gt;? I somehow have to redefine the &lt;FONT face="courier new,courier"&gt;pdiff&lt;/FONT&gt; option but I am not aware how to easily solve that task. Any ideas on how to get such a table? I'd greatly appreciate it!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 14:04:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Compact-letter-display-for-proc-glimmix-with-lsmestimate/m-p/548497#M27379</guid>
      <dc:creator>lotcarrots</dc:creator>
      <dc:date>2019-04-04T14:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Compact letter display for proc glimmix with lsmestimate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Compact-letter-display-for-proc-glimmix-with-lsmestimate/m-p/548715#M27390</link>
      <description>&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;I found out that&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmeans f1*f2 / pdiff slice=(f1 f2) slicediff=(f1 f2) adjust=bon lines;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;basically &lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;does the same thing as my lsmestimate list of comparisons. With this I get the 'Simple Effect Comparisons of f1*f2 Least Squares Means By f2' and &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;analogously for 'By f1'. The problem in here is that the &lt;FONT face="courier new,courier"&gt;slicediff&lt;/FONT&gt; statement applies multiplicity adjustment only per slicediff-factor-level, i.e. within each level of each factor not for all comparisons simultaneously. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;I can solve this by using&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc multtest inpvalues(Probt)=SliceDiffs bonferroni;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;and get the same adjusted p-values as in my manual lsmestimates, which is nice so far.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;For the letter display I tried to make good use of the &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;&lt;A href="https://www.researchgate.net/publication/286956968_A_SAS_macro_for_generating_letter_displays_of_pairwise_mean_comparisons" target="_self"&gt;%MULT macro by Piepho&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;Unfortunately, this again contains all comparisons, even those that are of no interest to me.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;Does that make sense at all oder do I want too much from Statistics or SAS?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 08:34:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Compact-letter-display-for-proc-glimmix-with-lsmestimate/m-p/548715#M27390</guid>
      <dc:creator>lotcarrots</dc:creator>
      <dc:date>2019-04-05T08:34:58Z</dc:date>
    </item>
  </channel>
</rss>

