<?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: frequency table when you have many variables in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/frequency-table-when-you-have-many-variables/m-p/723341#M35065</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60061"&gt;@fatemeh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;Appreciate you helping me find a way to get two by two frequency table apply proc freq. I have many categorical variables, it is time consuming to enter all variables two by two.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The proc freq tables statement allows use of parentheses to create "groups" of variables that get treated similarly.&lt;/P&gt;
&lt;P&gt;So&lt;/P&gt;
&lt;P&gt;tables (a b c d) *(p d q r); is short hand for all of the pairs of the variables in the first parentheses and all in the second:&lt;/P&gt;
&lt;P&gt;a*p a*d a*q a*r b*p b*c b*q b*r etc.&lt;/P&gt;
&lt;P&gt;You cal also use variable lists:&lt;/P&gt;
&lt;P&gt;tables (a1-a10 ) *(v1-v15). If you have 10 variables that start with a. So that would do a1*v1 a1*v2 ... a1*v15 a2*v1 ... a2*v15 ... a10*v1 .. a10*v15.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you could cross all of the variables using the special list _all_.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tables _all_* _all_;&lt;/P&gt;
&lt;P&gt;but don't expect to get the output quickly with a large data set with lots of variables. 50 variables in the data set means 50*50 tables, or 2500.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Mar 2021 01:43:12 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-03-04T01:43:12Z</dc:date>
    <item>
      <title>frequency table when you have many variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/frequency-table-when-you-have-many-variables/m-p/723339#M35064</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Appreciate you helping me find a way to get two by two frequency table apply proc freq. I have many categorical variables, it is time consuming to enter all variables two by two.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 01:32:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/frequency-table-when-you-have-many-variables/m-p/723339#M35064</guid>
      <dc:creator>fatemeh</dc:creator>
      <dc:date>2021-03-04T01:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: frequency table when you have many variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/frequency-table-when-you-have-many-variables/m-p/723341#M35065</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60061"&gt;@fatemeh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;Appreciate you helping me find a way to get two by two frequency table apply proc freq. I have many categorical variables, it is time consuming to enter all variables two by two.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The proc freq tables statement allows use of parentheses to create "groups" of variables that get treated similarly.&lt;/P&gt;
&lt;P&gt;So&lt;/P&gt;
&lt;P&gt;tables (a b c d) *(p d q r); is short hand for all of the pairs of the variables in the first parentheses and all in the second:&lt;/P&gt;
&lt;P&gt;a*p a*d a*q a*r b*p b*c b*q b*r etc.&lt;/P&gt;
&lt;P&gt;You cal also use variable lists:&lt;/P&gt;
&lt;P&gt;tables (a1-a10 ) *(v1-v15). If you have 10 variables that start with a. So that would do a1*v1 a1*v2 ... a1*v15 a2*v1 ... a2*v15 ... a10*v1 .. a10*v15.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you could cross all of the variables using the special list _all_.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tables _all_* _all_;&lt;/P&gt;
&lt;P&gt;but don't expect to get the output quickly with a large data set with lots of variables. 50 variables in the data set means 50*50 tables, or 2500.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 01:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/frequency-table-when-you-have-many-variables/m-p/723341#M35065</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-04T01:43:12Z</dc:date>
    </item>
  </channel>
</rss>

