<?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 PROC GLIMMIX Contrasts in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-Contrasts/m-p/699608#M33739</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using proc glimmix to analyze count data. I notice that the pvalues for a contrast between two simple effects are the same as the pvalues for lsmeans diff for the same simple effect. If I use the contrast comparison, do I report the actual means or the lsmeans?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2020 20:27:47 GMT</pubDate>
    <dc:creator>mthorne</dc:creator>
    <dc:date>2020-11-17T20:27:47Z</dc:date>
    <item>
      <title>PROC GLIMMIX Contrasts</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-Contrasts/m-p/699608#M33739</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using proc glimmix to analyze count data. I notice that the pvalues for a contrast between two simple effects are the same as the pvalues for lsmeans diff for the same simple effect. If I use the contrast comparison, do I report the actual means or the lsmeans?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 20:27:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-Contrasts/m-p/699608#M33739</guid>
      <dc:creator>mthorne</dc:creator>
      <dc:date>2020-11-17T20:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX Contrasts</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-Contrasts/m-p/699621#M33740</link>
      <description>&lt;P&gt;Depending on how you did the contrast, it can indeed be the same as the LSMEANs difference. Not just the p-values should match, but the actual difference should match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again, depending on what you did, I would report the LSMEANs and their differences as a general rule, since I have seen only very rare situations where the contrast is actually needed. I would report Means instead of LSMEANS only if you have a completely balanced and orthogonal experiment, or you have the equivalent of a one-way ANOVA.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 20:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-Contrasts/m-p/699621#M33740</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-11-17T20:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX Contrasts</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-Contrasts/m-p/699623#M33741</link>
      <description>&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods graphics on; &lt;BR /&gt;proc glimmix data=counts method=laplace nobound plot=studentpanel; by loc time;&lt;BR /&gt;class loc time herb rep;&lt;BR /&gt;tc2=log(c2+1);&lt;BR /&gt;model tc2 = herb / dist=normal link=identity;&lt;BR /&gt;random intercept / subject=rep;&lt;BR /&gt;lsmeans herb / ilink diff; &lt;BR /&gt;contrast '0 vs 1' herb 1 -1 0;&lt;BR /&gt;contrast '0 vs 2' herb 1 0 -1;&lt;BR /&gt;contrast '1 vs 2' herb 0 1 -1;&lt;BR /&gt;*output out=allresid pred=p resid=student;&lt;BR /&gt;run; quit;&lt;BR /&gt;ods graphics off;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The design is a balanced factorial with no missing data. Three locations, four application times, three herbicide treatments, and four replicate blocks at each location. Glimmix couldn't handle all zeros from some treatments, so I had to transform and compare to a normal distribution.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 21:19:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-Contrasts/m-p/699623#M33741</guid>
      <dc:creator>mthorne</dc:creator>
      <dc:date>2020-11-17T21:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX Contrasts</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-Contrasts/m-p/699629#M33742</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;contrast '0 vs 1' herb 1 -1 0;
contrast '0 vs 2' herb 1 0 -1;
contrast '1 vs 2' herb 0 1 -1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;There's no need to type all this out, the LSMEANS statement with the DIFF produces the same results.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 22:31:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-Contrasts/m-p/699629#M33742</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-11-17T22:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX Contrasts</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-Contrasts/m-p/699646#M33743</link>
      <description>&lt;P&gt;Great, thanks Paige!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 00:18:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-Contrasts/m-p/699646#M33743</guid>
      <dc:creator>mthorne</dc:creator>
      <dc:date>2020-11-18T00:18:02Z</dc:date>
    </item>
  </channel>
</rss>

