<?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 n-way contingency table output in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-n-way-contingency-table-output/m-p/15007#M2567</link>
    <description>Ok, thanks Paige! I was racking my brain trying to imagine how that could work. I'll have to find another way to get the results I need.</description>
    <pubDate>Mon, 11 Oct 2010 18:12:07 GMT</pubDate>
    <dc:creator>msas</dc:creator>
    <dc:date>2010-10-11T18:12:07Z</dc:date>
    <item>
      <title>Proc Freq n-way contingency table output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-n-way-contingency-table-output/m-p/15005#M2565</link>
      <description>I'm a student of SAS trying to obtain an n-way contingency table with 7 variables. I'm not even sure what that is supposed to look like with so many variables, but I'm working with the requirement to use PROC FREQ and the CROSSLIST option. Also, I can only use the observations that have 0 as the value for variable var8. This is what I'm trying:&lt;BR /&gt;
&lt;BR /&gt;
PROC FREQ DATA=dataset;&lt;BR /&gt;
	WHERE var8=0;&lt;BR /&gt;
	TABLES var1*var2*var3*var4*var5*var6*var7 / crosslist nocum nopercent norow nocol;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
My output is a mess. The tables aren't really tables and they say they're controlling for var1 through var5 while showing info for var6 and var7. I get 11 pages that says it has 32 tables but only a few are graphic. The rest just say "Table # of var6 by var7. Controlling for var through var5."&lt;BR /&gt;
&lt;BR /&gt;
I think the problem may be with the formatting of the variables. For example, var1 can either be "Never" or 0. Var 2 is "Once" or 0. Should I change the format? I don't get errors in the Log right now.&lt;BR /&gt;
&lt;BR /&gt;
The statements I'm using are just like what I'm seeing in many examples so I'm confused. Any assistance is appreciated!&lt;BR /&gt;
&lt;BR /&gt;
(I'm using SAS 9.2.)</description>
      <pubDate>Mon, 11 Oct 2010 15:52:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-n-way-contingency-table-output/m-p/15005#M2565</guid>
      <dc:creator>msas</dc:creator>
      <dc:date>2010-10-11T15:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq n-way contingency table output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-n-way-contingency-table-output/m-p/15006#M2566</link>
      <description>I have never seen a 7-dimensional table. I imagine it would be hard to fit into two-dimensional output format like a SAS Listing. &lt;BR /&gt;
&lt;BR /&gt;
So when PROC FREQ gives you output like you described, I suspect that's the best that can be done. The problem you are facing is not the formatting of the variables.</description>
      <pubDate>Mon, 11 Oct 2010 16:36:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-n-way-contingency-table-output/m-p/15006#M2566</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2010-10-11T16:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq n-way contingency table output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-n-way-contingency-table-output/m-p/15007#M2567</link>
      <description>Ok, thanks Paige! I was racking my brain trying to imagine how that could work. I'll have to find another way to get the results I need.</description>
      <pubDate>Mon, 11 Oct 2010 18:12:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-n-way-contingency-table-output/m-p/15007#M2567</guid>
      <dc:creator>msas</dc:creator>
      <dc:date>2010-10-11T18:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq n-way contingency table output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-n-way-contingency-table-output/m-p/15008#M2568</link>
      <description>Another way that might get a sufficient display is with PROC TABULATE.  I've not used it for 7 variables, but have gotten up to 4 or 5.  &lt;BR /&gt;
&lt;BR /&gt;
You may need to address the formatting as "Never" and "0" would be treated as distinct values.</description>
      <pubDate>Mon, 11 Oct 2010 18:24:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-n-way-contingency-table-output/m-p/15008#M2568</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2010-10-11T18:24:51Z</dc:date>
    </item>
  </channel>
</rss>

