<?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: proc freq with multiple variables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-with-multiple-variables/m-p/111343#M30850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not use proc tabulate ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2012 05:15:52 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2012-09-05T05:15:52Z</dc:date>
    <item>
      <title>proc freq with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-with-multiple-variables/m-p/111340#M30847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAS community, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a crosstab matrix of 10 variables by ID.&amp;nbsp; Can I do this with proc freq?&amp;nbsp; (I.e. using a modified code of A*B*C*D*E*F*G*H*I*J?)&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;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;input ID A B C D E F G H I J;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;21 0 1 0 0 0 0 1 0 0 0&lt;/P&gt;&lt;P&gt;22 0 0 0 1 0 0 0 0 0 0&lt;/P&gt;&lt;P&gt;23 0 0 0 0 0 0 0 0 0 0&lt;/P&gt;&lt;P&gt;24 0 0 0 0 1 1 0 0 0 1&lt;/P&gt;&lt;P&gt;25 0 0 1 0 0 0 0 0 0 0&lt;/P&gt;&lt;P&gt;26 0 0 1 1 1 0 0 0 0 0&lt;/P&gt;&lt;P&gt;27 0 1 0 0 0 0 0 0 0 0&lt;/P&gt;&lt;P&gt;28 0 0 0 0 1 0 1 1 0 0&lt;/P&gt;&lt;P&gt;29 1 0 0 0 0 0 0 0 0 0&lt;/P&gt;&lt;P&gt;30 0 0 0 0 0 0 0 0 0 0&lt;/P&gt;&lt;P&gt;;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 13:52:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-with-multiple-variables/m-p/111340#M30847</guid>
      <dc:creator>sophia_SAS</dc:creator>
      <dc:date>2012-09-04T13:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-with-multiple-variables/m-p/111341#M30848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want an output data set, it's easy.&amp;nbsp; Just use the modified code you listed in the TABLES statement, along with these options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES A*B*C*D*E*F*G*H*I*J / noprint out=my_output_dataset;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want a report with a structure that a human might be able to grasp, try the LIST option:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES A*B*C*D*E*F*G*H*I*J / LIST MISSING;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report can be quite lengthy, as it requires a row for each unique combination of 10 variables.&amp;nbsp; If this report doesn't have the right appearance that you need, you'll have to switch to another tool such as PROC TABULATE.&amp;nbsp; The harder part will be deciding on what the report should look like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 15:09:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-with-multiple-variables/m-p/111341#M30848</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-09-04T15:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-with-multiple-variables/m-p/111342#M30849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It occurred to me that you might be looking for something different, the equivalent of ID*A, then ID*B, then ID*C, etc.&amp;nbsp; If so, try this variation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES ID * (A B C D E F G H I J);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 15:29:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-with-multiple-variables/m-p/111342#M30849</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-09-04T15:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-with-multiple-variables/m-p/111343#M30850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not use proc tabulate ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 05:15:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-with-multiple-variables/m-p/111343#M30850</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-09-05T05:15:52Z</dc:date>
    </item>
  </channel>
</rss>

