<?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 Re: help in using contrast statements for exploring interactions in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/help-in-using-contrast-statements-for-exploring-interactions/m-p/469631#M24431</link>
    <description>&lt;P&gt;If age is a categorical variable then it would need to appear on the CLASS statement as well.&lt;/P&gt;
&lt;P&gt;You might refer to this example&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.3&amp;amp;docsetTarget=statug_logistic_examples02.htm&amp;amp;locale=en " target="_self"&gt;http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.3&amp;amp;docsetTarget=statug_logistic_examples02.htm&amp;amp;locale=en&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And this usage note on CONTRASTs&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/24/447.html#ex3" target="_self"&gt;http://support.sas.com/kb/24/447.html#ex3&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jun 2018 14:14:51 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2018-06-12T14:14:51Z</dc:date>
    <item>
      <title>help in using contrast statements for exploring interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/help-in-using-contrast-statements-for-exploring-interactions/m-p/469616#M24430</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to explore some interactions in my dataset, but I don't understand the code I was provided with (below). In my case, I have 5 age categories (under 12, 12-29, 30-64, 65-79, and 80 and older), and the exposure (COPD) and outcome (neurological disease) are both binary (0,1). How would I code this? Do I need to make a dummy variable for each age category? I'd really appreciate any help.&lt;/P&gt;&lt;P&gt;&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;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;logistic&lt;/STRONG&gt; data=arcus;&lt;/P&gt;&lt;P&gt;class arcus (ref="0") / param=ref;&lt;/P&gt;&lt;P&gt;model chd69 (event="1")=age50|arcus;&lt;/P&gt;&lt;P&gt;contrast 'arcus vs. no for age&amp;lt;50' arcus &lt;STRONG&gt;1&lt;/STRONG&gt; age50*arcus &lt;STRONG&gt;0&lt;/STRONG&gt; / estimate=both;&lt;/P&gt;&lt;P&gt;contrast 'arcus vs. no for age&amp;gt;=50' arcus &lt;STRONG&gt;1&lt;/STRONG&gt; age50*arcus &lt;STRONG&gt;1&lt;/STRONG&gt; / estimate=both;&lt;/P&gt;&lt;P&gt;contrast 'age50 vs. no with arcus' age50 &lt;STRONG&gt;1&lt;/STRONG&gt; age50*arcus &lt;STRONG&gt;0&lt;/STRONG&gt; / estimate=both;&lt;/P&gt;&lt;P&gt;contrast 'age50 vs. no without arcus' age50 &lt;STRONG&gt;1&lt;/STRONG&gt; age50*arcus &lt;STRONG&gt;1&lt;/STRONG&gt; / estimate=both;&lt;/P&gt;&lt;P&gt;contrast 'arcus and age50 vs. neither' age50 &lt;STRONG&gt;1&lt;/STRONG&gt; arcus &lt;STRONG&gt;1&lt;/STRONG&gt; age50*arcus &lt;STRONG&gt;1&lt;/STRONG&gt; / estimate=both;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 13:14:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/help-in-using-contrast-statements-for-exploring-interactions/m-p/469616#M24430</guid>
      <dc:creator>Angmar</dc:creator>
      <dc:date>2018-06-12T13:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: help in using contrast statements for exploring interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/help-in-using-contrast-statements-for-exploring-interactions/m-p/469631#M24431</link>
      <description>&lt;P&gt;If age is a categorical variable then it would need to appear on the CLASS statement as well.&lt;/P&gt;
&lt;P&gt;You might refer to this example&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.3&amp;amp;docsetTarget=statug_logistic_examples02.htm&amp;amp;locale=en " target="_self"&gt;http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.3&amp;amp;docsetTarget=statug_logistic_examples02.htm&amp;amp;locale=en&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And this usage note on CONTRASTs&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/24/447.html#ex3" target="_self"&gt;http://support.sas.com/kb/24/447.html#ex3&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 14:14:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/help-in-using-contrast-statements-for-exploring-interactions/m-p/469631#M24431</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2018-06-12T14:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: help in using contrast statements for exploring interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/help-in-using-contrast-statements-for-exploring-interactions/m-p/469719#M24435</link>
      <description>&lt;P&gt;In most cases, you can avoid the need to properly determine CONTRAST coefficients by using the LSMEANS, SLICE, or LSMESTIMATE statement. In the case of an interaction of two categorical predictors, the SLICE statement is best. Your description doesn't seem to match the code you show which suggests there are two binary predictors, age50 and arcus. For that code you can use a SLICE statement like the following to compare the age50 levels within each arcus level. A similar statement could compare arcus levels within arge50 levels. Note that GLM parameterization must be used for the above statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;class age50 arcus / param=glm;&lt;/P&gt;
&lt;P&gt;slice age50*arcus / sliceby=arcus means ilink cl;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 19:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/help-in-using-contrast-statements-for-exploring-interactions/m-p/469719#M24435</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2018-06-12T19:21:29Z</dc:date>
    </item>
  </channel>
</rss>

