<?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: SAS testing interactions in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-testing-interactions/m-p/645287#M22030</link>
    <description>&lt;P&gt;Hello&amp;nbsp;@anonymous_user,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a categorical variable &lt;FONT face="courier new,courier"&gt;bmicategory&lt;/FONT&gt; should be inserted into the CLASS statement. In many cases categorical variables are character variables, so a multiplication as in your assignment statement would be invalid anyway. Even if both categorical variables are numeric,&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;interactionterm&lt;/FONT&gt; will not be recognized as an interaction term (despite its name and definition) -- with several degrees of freedom (depending on the numbers of categories and the parameterization method) --, but treated as a continuous variable (with only one degree of freedom), which is likely not what you want. Therefore, omit the assignment statement and replace&amp;nbsp;&lt;FONT face="courier new,courier"&gt;interactionterm&lt;/FONT&gt; with&amp;nbsp;&lt;FONT face="courier new,courier"&gt;bmicategory*diet_scorecategory&lt;/FONT&gt; in the MODEL statement.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2020 13:23:47 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2020-05-05T13:23:47Z</dc:date>
    <item>
      <title>SAS testing interactions</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-testing-interactions/m-p/645216#M22027</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am trying to test multiplicative interaction between 2 categorical variables with more than 2 categories.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would it be appropriate to use this code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc phreg data=new;&lt;/P&gt;&lt;P&gt;class diet_scorecategory (ref="1");&lt;/P&gt;&lt;P&gt;model (time*outcome(0) = bmicategory diet_scorecategory interactionterm;&lt;/P&gt;&lt;P&gt;interactionterm=bmicategory*diet_scorecategory;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 09:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-testing-interactions/m-p/645216#M22027</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2020-05-05T09:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS testing interactions</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-testing-interactions/m-p/645287#M22030</link>
      <description>&lt;P&gt;Hello&amp;nbsp;@anonymous_user,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a categorical variable &lt;FONT face="courier new,courier"&gt;bmicategory&lt;/FONT&gt; should be inserted into the CLASS statement. In many cases categorical variables are character variables, so a multiplication as in your assignment statement would be invalid anyway. Even if both categorical variables are numeric,&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;interactionterm&lt;/FONT&gt; will not be recognized as an interaction term (despite its name and definition) -- with several degrees of freedom (depending on the numbers of categories and the parameterization method) --, but treated as a continuous variable (with only one degree of freedom), which is likely not what you want. Therefore, omit the assignment statement and replace&amp;nbsp;&lt;FONT face="courier new,courier"&gt;interactionterm&lt;/FONT&gt; with&amp;nbsp;&lt;FONT face="courier new,courier"&gt;bmicategory*diet_scorecategory&lt;/FONT&gt; in the MODEL statement.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 13:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-testing-interactions/m-p/645287#M22030</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-05-05T13:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS testing interactions</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-testing-interactions/m-p/645290#M22032</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;many thanks! It worked&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 13:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-testing-interactions/m-p/645290#M22032</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2020-05-05T13:31:30Z</dc:date>
    </item>
  </channel>
</rss>

