<?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 lsmeans &amp;quot;adjust=&amp;quot; not working in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/lsmeans-quot-adjust-quot-not-working/m-p/478726#M24912</link>
    <description>&lt;P&gt;I'm running the following code, and running into an issue with the adjustment for multiple comparisons:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=Weight;
	class ID Sex Virus Day;
	where sex=1;
	WtChange = Day|Virus;
	random Day / residual subject=ID type=ar(1);
	lsmeans Day*Virus / slicediff=day slice=virus plot=mean(sliceby=Virus join clband) adjust=bon;
	ods output slicediffs=Female_BL_Wt_PH;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Everything seems to be working well, with the exception of the correction for multiple comparisons (adj_p = raw_p). No adjustment appears to be made. I included a picture of the table below to illustrate my output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lsmeans output.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21808i99183D4F5461F13B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lsmeans output.JPG" alt="lsmeans output.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried adjust=bon, tukey, simulate, and none seem to work. Any thoughts on what is going on? My fixed effect appears to be significant, and there are clearly interesting differences in my lsmeans diffs (see table above). Could this have to do with the slice function? Thanks for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jul 2018 17:02:26 GMT</pubDate>
    <dc:creator>matthew_m</dc:creator>
    <dc:date>2018-07-17T17:02:26Z</dc:date>
    <item>
      <title>lsmeans "adjust=" not working</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/lsmeans-quot-adjust-quot-not-working/m-p/478726#M24912</link>
      <description>&lt;P&gt;I'm running the following code, and running into an issue with the adjustment for multiple comparisons:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=Weight;
	class ID Sex Virus Day;
	where sex=1;
	WtChange = Day|Virus;
	random Day / residual subject=ID type=ar(1);
	lsmeans Day*Virus / slicediff=day slice=virus plot=mean(sliceby=Virus join clband) adjust=bon;
	ods output slicediffs=Female_BL_Wt_PH;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Everything seems to be working well, with the exception of the correction for multiple comparisons (adj_p = raw_p). No adjustment appears to be made. I included a picture of the table below to illustrate my output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lsmeans output.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21808i99183D4F5461F13B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lsmeans output.JPG" alt="lsmeans output.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried adjust=bon, tukey, simulate, and none seem to work. Any thoughts on what is going on? My fixed effect appears to be significant, and there are clearly interesting differences in my lsmeans diffs (see table above). Could this have to do with the slice function? Thanks for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 17:02:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/lsmeans-quot-adjust-quot-not-working/m-p/478726#M24912</guid>
      <dc:creator>matthew_m</dc:creator>
      <dc:date>2018-07-17T17:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: lsmeans "adjust=" not working</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/lsmeans-quot-adjust-quot-not-working/m-p/478734#M24913</link>
      <description>&lt;P&gt;The displayed table may not show actual differences if they are small.&lt;/P&gt;
&lt;P&gt;Try printing your output set with a wider format than the default pvalue format such as Best12. and see if they match to 10 decimals.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 17:21:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/lsmeans-quot-adjust-quot-not-working/m-p/478734#M24913</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-17T17:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: lsmeans "adjust=" not working</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/lsmeans-quot-adjust-quot-not-working/m-p/478740#M24914</link>
      <description>&lt;P&gt;Interesting thought, but that didn't seem to fix the issue... They're still identical. Plus, I'd be surprised if the bonferroni correction didn't affect my results. Table with expanded p value below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21809i0C3C6ECEF42C36E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Jul 2018 17:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/lsmeans-quot-adjust-quot-not-working/m-p/478740#M24914</guid>
      <dc:creator>matthew_m</dc:creator>
      <dc:date>2018-07-17T17:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: lsmeans "adjust=" not working</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/lsmeans-quot-adjust-quot-not-working/m-p/478902#M24919</link>
      <description>&lt;P&gt;The pairwise comparisons in your table are generated by "slicediff=day". There are only two levels of virus, so there is only one comparison for each day. The adjustment (regardless of which method) is made &lt;EM&gt;within each slice&lt;/EM&gt;. When there is only one comparison, there is no adjustment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Quoting the documentation&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glimmix_sect006.htm" target="_self"&gt;found here&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;When the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/statug_glimmix_sect006.htm#statug.glimmix.gmxlsmadjust" target="_blank"&gt;ADJUST=&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;option is specified, the GLIMMIX procedure also adjusts the tests for multiplicity. The adjustment is based on the number of comparisons within each level of the SLICEDIFF= effect; see the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/statug_glimmix_sect006.htm#statug.glimmix.gmxlsmslicedifftype" target="_blank"&gt;SLICEDIFFTYPE=&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;option.&amp;nbsp;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(Documentation is your friend and provides many answers.)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 04:17:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/lsmeans-quot-adjust-quot-not-working/m-p/478902#M24919</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2018-07-18T04:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: lsmeans "adjust=" not working</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/lsmeans-quot-adjust-quot-not-working/m-p/479031#M24921</link>
      <description>&lt;P&gt;Hmmm... That not the way I interpreted that statement. If I understand the way you're interpreting it, the adjust statement is only correcting for multiple comparisons within each level of "Day". In other words, since I'm making 1 comparison on each day, it is only correcting for 1 comparison. It is not correcting for the&amp;nbsp;9 comparisons listed in the table, which actually what I want it to do. Is there a better way to code this within the lsmeans statement, or will I be forced to export the table and use proc multtest? Thanks for all the help.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 13:19:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/lsmeans-quot-adjust-quot-not-working/m-p/479031#M24921</guid>
      <dc:creator>matthew_m</dc:creator>
      <dc:date>2018-07-18T13:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: lsmeans "adjust=" not working</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/lsmeans-quot-adjust-quot-not-working/m-p/479054#M24923</link>
      <description>&lt;P&gt;I would say that your interpretation of my interpretation is correct. And consistent with the results you get.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An argument could be made that there is little need for Type I error control among these 9 comparisons: no mean is used in more than one comparison, and the overall test of interaction assesses whether all 9 differences are equal (versus the alternative that at least two differences are unequal).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you wanted control then, as you note, you could save the SLICEDIFF output to a dataset using ODS and then use MULTTEST. You could also specify the 9 comparisons in a LSMESTIMATE statement with the ADJUST option.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 13:53:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/lsmeans-quot-adjust-quot-not-working/m-p/479054#M24923</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2018-07-18T13:53:59Z</dc:date>
    </item>
  </channel>
</rss>

