<?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 Contrasts in SAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Contrasts-in-SAS/m-p/438316#M23124</link>
    <description>&lt;P&gt;I am new at working with contrasts. I was interested in resources to learn how to create contrasts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I need help with one of my analyses - I have 3 factors:&amp;nbsp;a (high and low), b (red and white), c (small, medium, large). I need to create contrasts for the main effect&amp;nbsp;of the three level factor to compare small vs. medium, small vs. large and medium vs. small and also&amp;nbsp;two-way interactions between factors. How would those contrasts look like, I am getting hung up on it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glimmix data=test;&lt;BR /&gt;class&amp;nbsp;a b c;&lt;BR /&gt;model outcome=a b c a*b a*c b*c&amp;nbsp;/ dist=normal;&lt;BR /&gt;lsmeans &lt;SPAN&gt;a b c&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;lsmeans a*b a*c b*c&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;contrast .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;M&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2018 00:23:44 GMT</pubDate>
    <dc:creator>mmjohnson</dc:creator>
    <dc:date>2018-02-19T00:23:44Z</dc:date>
    <item>
      <title>Contrasts in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Contrasts-in-SAS/m-p/438316#M23124</link>
      <description>&lt;P&gt;I am new at working with contrasts. I was interested in resources to learn how to create contrasts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I need help with one of my analyses - I have 3 factors:&amp;nbsp;a (high and low), b (red and white), c (small, medium, large). I need to create contrasts for the main effect&amp;nbsp;of the three level factor to compare small vs. medium, small vs. large and medium vs. small and also&amp;nbsp;two-way interactions between factors. How would those contrasts look like, I am getting hung up on it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glimmix data=test;&lt;BR /&gt;class&amp;nbsp;a b c;&lt;BR /&gt;model outcome=a b c a*b a*c b*c&amp;nbsp;/ dist=normal;&lt;BR /&gt;lsmeans &lt;SPAN&gt;a b c&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;lsmeans a*b a*c b*c&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;contrast .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;M&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 00:23:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Contrasts-in-SAS/m-p/438316#M23124</guid>
      <dc:creator>mmjohnson</dc:creator>
      <dc:date>2018-02-19T00:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Contrasts in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Contrasts-in-SAS/m-p/438320#M23125</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/69755"&gt;@mmjohnson&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I am new at working with contrasts. I was interested in resources to learn how to create contrasts.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;M&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Here's a good resource:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings11/351-2011.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings11/351-2011.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 02:39:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Contrasts-in-SAS/m-p/438320#M23125</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-19T02:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Contrasts in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Contrasts-in-SAS/m-p/440995#M23231</link>
      <description>&lt;P&gt;You don't generally need CONTRAST statements for pairwise comparisons of effect levels and it is safer to avoid it when possible. Simply add the DIFF option in your LSMEANS statement. &lt;A href="http://support.sas.com/kb/24447" target="_self"&gt;This note&lt;/A&gt; discusses the use of statements like LSMEANS, LSMESTIMATE, and SLICE for most comparisons since you don't have to work out the contrast coefficients when using these statements. But it also goes into detail on using CONTRAST and ESTIMATE statements for more general testing and estimation in which these statements might be needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This statement produces the pairwise comparisons among your C levels:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;lsmeans c / diff;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the options available in the LSMEANS statement which might be of use, such as the OM= and BYLEVEL options when dealing with unbalanced data.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 19:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Contrasts-in-SAS/m-p/440995#M23231</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2018-02-28T19:19:38Z</dc:date>
    </item>
  </channel>
</rss>

