<?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: How to get all possible multiplicative interactions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-all-possible-multiplicative-interactions/m-p/67010#M14512</link>
    <description>Hi:&lt;BR /&gt;
  If you are talking about PROC MEANS and CLASS variables, look at the doc for the TYPES and WAYS statements:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/59565/HTML/default/a000146737.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/59565/HTML/default/a000146737.htm&lt;/A&gt;&lt;BR /&gt;
   &lt;BR /&gt;
cynthia</description>
    <pubDate>Tue, 23 Dec 2008 16:14:05 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-12-23T16:14:05Z</dc:date>
    <item>
      <title>How to get all possible multiplicative interactions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-all-possible-multiplicative-interactions/m-p/67009#M14511</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
    I want to get all possible multiplicative interactions i.e, my input variable has 4 categeories. (say A, B, C, D) and then how can i get all possible interactions.&lt;BR /&gt;
A*B, A*C,... A*B*C, A*B*D,...  etc.) &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Tue, 23 Dec 2008 06:26:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-all-possible-multiplicative-interactions/m-p/67009#M14511</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-12-23T06:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all possible multiplicative interactions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-all-possible-multiplicative-interactions/m-p/67010#M14512</link>
      <description>Hi:&lt;BR /&gt;
  If you are talking about PROC MEANS and CLASS variables, look at the doc for the TYPES and WAYS statements:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/59565/HTML/default/a000146737.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/59565/HTML/default/a000146737.htm&lt;/A&gt;&lt;BR /&gt;
   &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 23 Dec 2008 16:14:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-all-possible-multiplicative-interactions/m-p/67010#M14512</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-12-23T16:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all possible multiplicative interactions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-all-possible-multiplicative-interactions/m-p/67011#M14513</link>
      <description>Hi&lt;BR /&gt;
Below a code example to get what you asked for.&lt;BR /&gt;
Have also a look at Proc Mixed and the like - may be that's in the end what you're aiming for.&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick&lt;BR /&gt;
&lt;BR /&gt;
data have;&lt;BR /&gt;
  do CatVar='a','b','c','d','e','b';&lt;BR /&gt;
    output;&lt;BR /&gt;
  end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
  create view Vhave as&lt;BR /&gt;
    select Distinct CatVar&lt;BR /&gt;
      from have&lt;BR /&gt;
      order by CatVar;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
proc transpose data=Vhave out=TransHave;&lt;BR /&gt;
  var CatVar;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc summary data=TransHave;&lt;BR /&gt;
  class col:;&lt;BR /&gt;
  output out=CombHave(where=(_type_ ne 0));&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data want;&lt;BR /&gt;
  set CombHave;&lt;BR /&gt;
  CombVar=cats(of col:);&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc print data=want;&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 26 Dec 2008 00:16:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-all-possible-multiplicative-interactions/m-p/67011#M14513</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2008-12-26T00:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all possible multiplicative interactions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-all-possible-multiplicative-interactions/m-p/67012#M14514</link>
      <description>In GLM, you can use the "bar operator" (|) to get all possible interactions.  I suspect that syntax would work in MIXED as well.  Check the syntax in the MODEL statement.&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke</description>
      <pubDate>Fri, 26 Dec 2008 19:57:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-all-possible-multiplicative-interactions/m-p/67012#M14514</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2008-12-26T19:57:08Z</dc:date>
    </item>
  </channel>
</rss>

