<?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 proc freq, ods output and _TABLE_ variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-ods-output-and-TABLE-variable/m-p/818371#M323030</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;When using ods output, a _TABLE_ variable is generated. However, I cannot figure out when the value is different from 1.&lt;/P&gt;
&lt;P&gt;I was thinking that there could be a link with the TABLE variable but it does not seem the case.&lt;/P&gt;
&lt;P&gt;Here is an example :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data abcd;
   a=1; b=1; c=1; d=1; output;
   a=2; b=1; c=0; d=4; output;
   a=2; b=1; c=0; d=4; output;
   a=1; b=1; c=1; d=1; output;
   a=1; b=1; c=1; d=1; output;

ods output CrossTabFreqs=demo;

proc freq data=abcd ; 
	table a*b a*c; 
run;

proc print data=demo noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_table_.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72331i8C42417AEDE89E9E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_table_.JPG" alt="_table_.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 16:10:51 GMT</pubDate>
    <dc:creator>xxformat_com</dc:creator>
    <dc:date>2022-06-15T16:10:51Z</dc:date>
    <item>
      <title>proc freq, ods output and _TABLE_ variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-ods-output-and-TABLE-variable/m-p/818371#M323030</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;When using ods output, a _TABLE_ variable is generated. However, I cannot figure out when the value is different from 1.&lt;/P&gt;
&lt;P&gt;I was thinking that there could be a link with the TABLE variable but it does not seem the case.&lt;/P&gt;
&lt;P&gt;Here is an example :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data abcd;
   a=1; b=1; c=1; d=1; output;
   a=2; b=1; c=0; d=4; output;
   a=2; b=1; c=0; d=4; output;
   a=1; b=1; c=1; d=1; output;
   a=1; b=1; c=1; d=1; output;

ods output CrossTabFreqs=demo;

proc freq data=abcd ; 
	table a*b a*c; 
run;

proc print data=demo noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_table_.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72331i8C42417AEDE89E9E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_table_.JPG" alt="_table_.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 16:10:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-ods-output-and-TABLE-variable/m-p/818371#M323030</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-06-15T16:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq, ods output and _TABLE_ variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-ods-output-and-TABLE-variable/m-p/818378#M323031</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods output CrossTabFreqs=demo;

proc freq data=abcd ; 
	table a*b*c; 
run;

proc print data=demo noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jun 2022 16:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-ods-output-and-TABLE-variable/m-p/818378#M323031</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-06-15T16:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq, ods output and _TABLE_ variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-ods-output-and-TABLE-variable/m-p/818409#M323038</link>
      <description>&lt;P&gt;To go along with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; example, look in the results window.&lt;/P&gt;
&lt;P&gt;Notice that for a*b and a*c there is only one table each but for a*b*c there are multiple tables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you look in the results window you will see in each table something like "Table 1 of b by c" and "Controlling for a=1".&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="left"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;So each of the tables in the gets a number greater than one when there are more levels of the "controlling for"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Consider:&lt;/P&gt;
&lt;PRE&gt;data abcd;
   input a b c d;
datalines;
1 1 1 1
2 1 0 4
2 2 0 4
1 1 1 1
1 1 1 1
3 2 1 1
3 2 0 0
3 1 1 4
3 2 1 4
;
ods output CrossTabFreqs=demo;

proc freq data=abcd ; 
	table a*b*c; 
run;&lt;/PRE&gt;
&lt;P&gt;There are 3 levels of variable A now, so there are 3 "controling for" of table for the b*c&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 16:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-ods-output-and-TABLE-variable/m-p/818409#M323038</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-06-15T16:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq, ods output and _TABLE_ variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-ods-output-and-TABLE-variable/m-p/818427#M323042</link>
      <description>Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;</description>
      <pubDate>Wed, 15 Jun 2022 18:21:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-ods-output-and-TABLE-variable/m-p/818427#M323042</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-06-15T18:21:03Z</dc:date>
    </item>
  </channel>
</rss>

