<?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 nlmixed interaction in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-nlmixed-interaction/m-p/620120#M29861</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have two categorical variables coded 0/1&lt;/P&gt;&lt;P&gt;Can I add their interaction like var1*var2 in proc nlmixed?&lt;/P&gt;&lt;P&gt;Would the procedure correctly recognise it and treat it correctly or do I need to create dummy variables?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Nikos&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2020 07:46:32 GMT</pubDate>
    <dc:creator>npandis</dc:creator>
    <dc:date>2020-01-27T07:46:32Z</dc:date>
    <item>
      <title>proc nlmixed interaction</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-nlmixed-interaction/m-p/620120#M29861</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have two categorical variables coded 0/1&lt;/P&gt;&lt;P&gt;Can I add their interaction like var1*var2 in proc nlmixed?&lt;/P&gt;&lt;P&gt;Would the procedure correctly recognise it and treat it correctly or do I need to create dummy variables?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Nikos&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 07:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-nlmixed-interaction/m-p/620120#M29861</guid>
      <dc:creator>npandis</dc:creator>
      <dc:date>2020-01-27T07:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc nlmixed interaction</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-nlmixed-interaction/m-p/620226#M29869</link>
      <description>&lt;P&gt;Since PROC NLMIXED does not have a CLASS statement, you need to construct the interaction terms yourself. &lt;A href="https://support.sas.com/resources/papers/proceedings17/0902-2017.pdf" target="_self"&gt;Robin High has an example in his SGF paper.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other alternative is to &lt;A href="https://blogs.sas.com/content/iml/2016/02/24/create-a-design-matrix-in-sas.html" target="_self"&gt;use a SAS procedure to output the design matrix&lt;/A&gt;, which will include the interaction term as a separate column. If the column is named Var12, you can then use the interaction in the model.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 16:46:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-nlmixed-interaction/m-p/620226#M29869</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-01-27T16:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: proc nlmixed interaction</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-nlmixed-interaction/m-p/620323#M29881</link>
      <description>&lt;P&gt;Thank Rick.&lt;/P&gt;&lt;P&gt;I have seen this paper and my understanding is that the goal is to convert the categorical variables to dummy 0/1 vars. This especially important when categorical vars have more than 2 levels. My 2 categorical vars have only two levels and are already coded 0/1.&lt;/P&gt;&lt;P&gt;However, I am not sure if I am ok.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Nikos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 20:19:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-nlmixed-interaction/m-p/620323#M29881</guid>
      <dc:creator>npandis</dc:creator>
      <dc:date>2020-01-27T20:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: proc nlmixed interaction</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-nlmixed-interaction/m-p/620338#M29883</link>
      <description>&lt;P&gt;Since you say you only have two binary predictors, there is only 1 degree of freedom for each main effect and their interaction. So you could use a model specification like this, assuming the variables are A and B with values 'yes' and 'no':&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ba*(a='yes') + bb*(b='yes') + bab*(a='yes')*(b='yes')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see examples of using this construction in these notes:&amp;nbsp;&lt;A href="http://support.sas.com/kb/60240" target="_self"&gt;60240&lt;/A&gt;, &lt;A href="http://support.sas.com/kb/37228" target="_self"&gt;37228&lt;/A&gt;,&amp;nbsp;&lt;A href="http://support.sas.com/kb/48506" target="_self"&gt;48506&lt;/A&gt; and&amp;nbsp;&lt;A href="http://support.sas.com/kb/44931" target="_self"&gt;44931.&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, 27 Jan 2020 20:55:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-nlmixed-interaction/m-p/620338#M29883</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-01-27T20:55:18Z</dc:date>
    </item>
  </channel>
</rss>

