<?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 LSD test in PROC GLIMMIX in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/LSD-test-in-PROC-GLIMMIX/m-p/986153#M49379</link>
    <description>&lt;P&gt;Hi SAS community,&lt;/P&gt;&lt;P&gt;I am trying to analyze grain yield data which follows a normal distribution. I would like get lsmeans comparisons using LSD. But, in the lsmeans statement, adjust option does not provide LSD. Below is the code that I am using in Proc Glimmix (using tukey method)-&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;proc glimmix data=Yieldkgha plots=residualpanel;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;class Treatment SiteYear Block Plot;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;model Yieldkgha = Treatment|SiteYear / dist= gaussian;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;random _Residual_/ group=Treatment ;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Random Block(SiteYear);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/*calculate lsmeans for all possible treatment and crop and adjust the values using Tukey*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;lsmeans Treatment|SiteYear / adjust=tukey lines cl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/*covtest "common variance" homogeneity;*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/*Checking assumptions of ANOVA */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;output out = resids predicted=pred residual=res;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ods output tests3=anova&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lsmeans=lsmeansYieldkgha&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lsmlines=lslinesYieldkgha;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can someone inform me how to conduct LSD in Proc Glimmix?&lt;/DIV&gt;</description>
    <pubDate>Thu, 09 Apr 2026 14:35:12 GMT</pubDate>
    <dc:creator>Raman3</dc:creator>
    <dc:date>2026-04-09T14:35:12Z</dc:date>
    <item>
      <title>LSD test in PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/LSD-test-in-PROC-GLIMMIX/m-p/986153#M49379</link>
      <description>&lt;P&gt;Hi SAS community,&lt;/P&gt;&lt;P&gt;I am trying to analyze grain yield data which follows a normal distribution. I would like get lsmeans comparisons using LSD. But, in the lsmeans statement, adjust option does not provide LSD. Below is the code that I am using in Proc Glimmix (using tukey method)-&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;proc glimmix data=Yieldkgha plots=residualpanel;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;class Treatment SiteYear Block Plot;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;model Yieldkgha = Treatment|SiteYear / dist= gaussian;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;random _Residual_/ group=Treatment ;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Random Block(SiteYear);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/*calculate lsmeans for all possible treatment and crop and adjust the values using Tukey*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;lsmeans Treatment|SiteYear / adjust=tukey lines cl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/*covtest "common variance" homogeneity;*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/*Checking assumptions of ANOVA */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;output out = resids predicted=pred residual=res;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ods output tests3=anova&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lsmeans=lsmeansYieldkgha&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lsmlines=lslinesYieldkgha;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can someone inform me how to conduct LSD in Proc Glimmix?&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Apr 2026 14:35:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/LSD-test-in-PROC-GLIMMIX/m-p/986153#M49379</guid>
      <dc:creator>Raman3</dc:creator>
      <dc:date>2026-04-09T14:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: LSD test in PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/LSD-test-in-PROC-GLIMMIX/m-p/986156#M49380</link>
      <description>&lt;P&gt;This suggests that you simply omit ADJUST&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=sashelp.class;
   class age;
   model weight = age;
   lsmeans age / lines;
   run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 308px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114166iB717921FD1B180CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2026 16:09:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/LSD-test-in-PROC-GLIMMIX/m-p/986156#M49380</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2026-04-09T16:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: LSD test in PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/LSD-test-in-PROC-GLIMMIX/m-p/986164#M49381</link>
      <description>Plz post it at Statistical Forum:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures&lt;/A&gt;</description>
      <pubDate>Fri, 10 Apr 2026 06:26:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/LSD-test-in-PROC-GLIMMIX/m-p/986164#M49381</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-04-10T06:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: LSD test in PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/LSD-test-in-PROC-GLIMMIX/m-p/986166#M49382</link>
      <description>&lt;P&gt;I moved this topic from "New Users" to "Statistical Procedures"-board.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 08:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/LSD-test-in-PROC-GLIMMIX/m-p/986166#M49382</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2026-04-10T08:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: LSD test in PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/LSD-test-in-PROC-GLIMMIX/m-p/986167#M49383</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P class="cs2654AE3A"&gt;&lt;SPAN class="csC87AC0FD"&gt;&lt;SPAN&gt;Can someone inform me how to conduct LSD in Proc Glimmix?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P class="cs2654AE3A"&gt;&lt;SPAN class="csC87AC0FD"&gt;The short answer is: you cannot get the LSD value from PROC GLIMMIX or PROC MIXED. There is such a thing as a least significant difference (LSD) only if all the cells have the same size and the model is simple enough so that the significance of all comparisons can be judged on the same scale. This is often not the case for mixed models, as a result, no LSD value is available in PROC GLIMMIX or PROC MIXED.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&lt;SPAN class="csC87AC0FD"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&lt;SPAN class="csC87AC0FD"&gt;You may specify the LSMEANS statement with ADJUST=TUKEY and the LINES option ...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&lt;SPAN class="csC87AC0FD"&gt;... and that will be the closest method I could suggest.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&lt;SPAN class="csC87AC0FD"&gt;BR, Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 08:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/LSD-test-in-PROC-GLIMMIX/m-p/986167#M49383</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2026-04-10T08:16:59Z</dc:date>
    </item>
  </channel>
</rss>

