<?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 effect statement to generate interactions by group in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/effect-statement-to-generate-interactions-by-group/m-p/544687#M150646</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering is there any way to generate the interaction by groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;say the following program generates the effects x1,x2 and x1*x2 :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glmselect;&lt;/P&gt;&lt;P&gt;effect poly = polynomial(x1-x2/degree=2 mdegree=1);&lt;/P&gt;&lt;P&gt;model y = poly/selection=none;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I have x1,x2,y1,y2 and want to generate the effects x1,x2,x1*x2,y1,y2 and y1*y2, how to modify the effect statement? Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2019 19:39:07 GMT</pubDate>
    <dc:creator>liyongkai800</dc:creator>
    <dc:date>2019-03-20T19:39:07Z</dc:date>
    <item>
      <title>effect statement to generate interactions by group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/effect-statement-to-generate-interactions-by-group/m-p/544687#M150646</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering is there any way to generate the interaction by groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;say the following program generates the effects x1,x2 and x1*x2 :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glmselect;&lt;/P&gt;&lt;P&gt;effect poly = polynomial(x1-x2/degree=2 mdegree=1);&lt;/P&gt;&lt;P&gt;model y = poly/selection=none;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I have x1,x2,y1,y2 and want to generate the effects x1,x2,x1*x2,y1,y2 and y1*y2, how to modify the effect statement? Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 19:39:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/effect-statement-to-generate-interactions-by-group/m-p/544687#M150646</guid>
      <dc:creator>liyongkai800</dc:creator>
      <dc:date>2019-03-20T19:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: effect statement to generate interactions by group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/effect-statement-to-generate-interactions-by-group/m-p/568137#M159874</link>
      <description>&lt;P&gt;You can add a second effect statement, but it is a lot easier to modify your model statement instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glmselect data = sashelp.baseball;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; effect poly = polynomial(nhits nrbi / degree = 2 mdegree = 1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; effect poly2 = polynomial(nouts nerror / degree = 2 mdegree = 1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; model logsalary = poly poly2 / selection = none;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glmselect data = sashelp.baseball;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; model logsalary = nhits|nrbi nouts|nerror / selection=none;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2019 17:29:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/effect-statement-to-generate-interactions-by-group/m-p/568137#M159874</guid>
      <dc:creator>arthurcavila</dc:creator>
      <dc:date>2019-06-22T17:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: effect statement to generate interactions by group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/effect-statement-to-generate-interactions-by-group/m-p/568348#M159970</link>
      <description>Thanks, it's good to know</description>
      <pubDate>Mon, 24 Jun 2019 13:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/effect-statement-to-generate-interactions-by-group/m-p/568348#M159970</guid>
      <dc:creator>liyongkai800</dc:creator>
      <dc:date>2019-06-24T13:02:31Z</dc:date>
    </item>
  </channel>
</rss>

