<?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 interaction term in regression in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/interaction-term-in-regression/m-p/91904#M26177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish to add an interaction term between 2 variables into my regression model, how do i write the codes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc reg data=test2;&lt;/P&gt;&lt;P&gt;model y = x1 x2 x3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add in a new variable of which&amp;nbsp; variable x1 interact with variable x4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;meiyee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2012 05:47:42 GMT</pubDate>
    <dc:creator>mei</dc:creator>
    <dc:date>2012-06-26T05:47:42Z</dc:date>
    <item>
      <title>interaction term in regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/interaction-term-in-regression/m-p/91904#M26177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish to add an interaction term between 2 variables into my regression model, how do i write the codes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc reg data=test2;&lt;/P&gt;&lt;P&gt;model y = x1 x2 x3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add in a new variable of which&amp;nbsp; variable x1 interact with variable x4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;meiyee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 05:47:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/interaction-term-in-regression/m-p/91904#M26177</guid>
      <dc:creator>mei</dc:creator>
      <dc:date>2012-06-26T05:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: interaction term in regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/interaction-term-in-regression/m-p/91905#M26178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are committed to proc reg, rather than the many other linear modeling procs, you will have to create the interaction variable in a data step.&amp;nbsp; You will probably have to do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test3;&lt;/P&gt;&lt;P&gt;set test2;&lt;/P&gt;&lt;P&gt;x1_x4=x1*x4;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc reg data=test3;&lt;/P&gt;&lt;P&gt;model y = x1 x2 x3 x4 x1_x4;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this gets at what you are trying to accomplish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 11:05:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/interaction-term-in-regression/m-p/91905#M26178</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-06-26T11:05:12Z</dc:date>
    </item>
  </channel>
</rss>

