<?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 Product terms as all combinations of two variables in regression in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Product-terms-as-all-combinations-of-two-variables-in-regression/m-p/306125#M65417</link>
    <description>&lt;P&gt;Say I have 5 variables (A-E) and I would like to test all the 2-way product term interactions between them (A*B, B*C, etc). Could someone please suggest a simple program to (a) create these product term variables, and (b) test each one in Proc Logistic, including the two original variables (A,B) and the product term (A*B)? Thank you. &amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Oct 2016 23:33:14 GMT</pubDate>
    <dc:creator>TJ87</dc:creator>
    <dc:date>2016-10-20T23:33:14Z</dc:date>
    <item>
      <title>Product terms as all combinations of two variables in regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Product-terms-as-all-combinations-of-two-variables-in-regression/m-p/306125#M65417</link>
      <description>&lt;P&gt;Say I have 5 variables (A-E) and I would like to test all the 2-way product term interactions between them (A*B, B*C, etc). Could someone please suggest a simple program to (a) create these product term variables, and (b) test each one in Proc Logistic, including the two original variables (A,B) and the product term (A*B)? Thank you. &amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 23:33:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Product-terms-as-all-combinations-of-two-variables-in-regression/m-p/306125#M65417</guid>
      <dc:creator>TJ87</dc:creator>
      <dc:date>2016-10-20T23:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Product terms as all combinations of two variables in regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Product-terms-as-all-combinations-of-two-variables-in-regression/m-p/306129#M65418</link>
      <description>&lt;P&gt;Specify full model as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model y = a | b | c @2 ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the documentation here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/SAS-9-4-Macro-Language-Reference-Has-a-New-Appendix/ta-p/291716" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/SAS-9-4-Macro-Language-Reference-Has-a-New-Appendix/ta-p/291716&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 23:52:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Product-terms-as-all-combinations-of-two-variables-in-regression/m-p/306129#M65418</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-20T23:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Product terms as all combinations of two variables in regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Product-terms-as-all-combinations-of-two-variables-in-regression/m-p/306140#M65423</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My understanding is that this will give all combinations in one model:&lt;/P&gt;
&lt;P&gt;y=a b c a*b a*c b*c&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is that correct? I'd like to model each product term separately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;y(1)=a b a*b&lt;/P&gt;
&lt;P&gt;y(2)=a c a*c&lt;/P&gt;
&lt;P&gt;y(3)=b c b*c&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2016 01:31:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Product-terms-as-all-combinations-of-two-variables-in-regression/m-p/306140#M65423</guid>
      <dc:creator>TJ87</dc:creator>
      <dc:date>2016-10-21T01:31:58Z</dc:date>
    </item>
  </channel>
</rss>

