<?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 Post hoc comparisons using Proc GLM in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Post-hoc-comparisons-using-Proc-GLM/m-p/64998#M18505</link>
    <description>Good Morning everyone,&lt;BR /&gt;
&lt;BR /&gt;
I am new to SAS and have a question.&lt;BR /&gt;
&lt;BR /&gt;
I have a dataset with one independent Group with 5 levels and one dependent variable Pol.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I am conducting a comparison of means using GLM with the following code:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc glm data=mylib.'Sheet1$'n; &lt;BR /&gt;
   class Group; &lt;BR /&gt;
   model pol = Group;&lt;BR /&gt;
   lsmeans CDKstage / stderr;&lt;BR /&gt;
&lt;BR /&gt;
The procedure works fine and shows a highly significant difference between the levels of Group p&amp;lt;.001.  Now I would like to conduct a follow up analysis to determine which of the levels of group are different from the others.  How do I do a post hoc comparison of means in Proc GLM.&lt;BR /&gt;
&lt;BR /&gt;
Thank you!!</description>
    <pubDate>Sun, 16 Aug 2009 08:17:34 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-08-16T08:17:34Z</dc:date>
    <item>
      <title>Post hoc comparisons using Proc GLM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Post-hoc-comparisons-using-Proc-GLM/m-p/64998#M18505</link>
      <description>Good Morning everyone,&lt;BR /&gt;
&lt;BR /&gt;
I am new to SAS and have a question.&lt;BR /&gt;
&lt;BR /&gt;
I have a dataset with one independent Group with 5 levels and one dependent variable Pol.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I am conducting a comparison of means using GLM with the following code:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc glm data=mylib.'Sheet1$'n; &lt;BR /&gt;
   class Group; &lt;BR /&gt;
   model pol = Group;&lt;BR /&gt;
   lsmeans CDKstage / stderr;&lt;BR /&gt;
&lt;BR /&gt;
The procedure works fine and shows a highly significant difference between the levels of Group p&amp;lt;.001.  Now I would like to conduct a follow up analysis to determine which of the levels of group are different from the others.  How do I do a post hoc comparison of means in Proc GLM.&lt;BR /&gt;
&lt;BR /&gt;
Thank you!!</description>
      <pubDate>Sun, 16 Aug 2009 08:17:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Post-hoc-comparisons-using-Proc-GLM/m-p/64998#M18505</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-16T08:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Post hoc comparisons using Proc GLM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Post-hoc-comparisons-using-Proc-GLM/m-p/64999#M18506</link>
      <description>I believe I figure it out.  I was able to conduct a Tukey pairwise comparison of means by simply adding a T to the lsmeans code as seen below.  Because there have been a few views but no suggestion.maybe this will help others.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc glm data=mylib.'Sheet1$'n;&lt;BR /&gt;
class Group;&lt;BR /&gt;
model pol = Group;&lt;BR /&gt;
lsmeans CDKstage / T stderr;</description>
      <pubDate>Sun, 16 Aug 2009 12:39:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Post-hoc-comparisons-using-Proc-GLM/m-p/64999#M18506</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-16T12:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Post hoc comparisons using Proc GLM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Post-hoc-comparisons-using-Proc-GLM/m-p/65000#M18507</link>
      <description>The help for SAS 9.2 doesn't list T as an option in the LSMEANS statement.&lt;BR /&gt;
&lt;BR /&gt;
It does list ADJUST=T as an option in the LSMEANS statement, which is NOT the TUKEY comparison of means. It is a simple t-test comparison of means.</description>
      <pubDate>Mon, 17 Aug 2009 12:35:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Post-hoc-comparisons-using-Proc-GLM/m-p/65000#M18507</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2009-08-17T12:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Post hoc comparisons using Proc GLM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Post-hoc-comparisons-using-Proc-GLM/m-p/65001#M18508</link>
      <description>Hi Docnew,&lt;BR /&gt;
&lt;BR /&gt;
Try the following:&lt;BR /&gt;
&lt;BR /&gt;
proc glm data=mylib.'Sheet1$'n;&lt;BR /&gt;
class Group;&lt;BR /&gt;
model pol = Group;&lt;BR /&gt;
lsmeans Group / pdiff adjust=tukey;&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 17 Aug 2009 19:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Post-hoc-comparisons-using-Proc-GLM/m-p/65001#M18508</guid>
      <dc:creator>statsplank</dc:creator>
      <dc:date>2009-08-17T19:00:36Z</dc:date>
    </item>
  </channel>
</rss>

