<?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: Big Crosstab for N in 5 categorical variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Big-Crosstab-for-N-in-5-categorical-variables/m-p/446227#M111928</link>
    <description>&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;freq&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;mn1&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;tables&lt;/SPAN&gt; iedtotal_50&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;iedpreed_50&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;iededs_50&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;school_2&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;bc_1&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;pb_method&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;wm_cog_admin&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; out=want list nopercent nocol norow&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try that, the LIST to create a list table instead and an OUT to output a data set with the data instead of a report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/172002"&gt;@TMSmith&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm struggling to make a certain type of table I've been asked for. In essence, I need a crosstab table of all of my categorical variables so I will know cell counts. So, for example, if I had race, sex, and eye color then I will need a table of Race*sex*eyecolor by race*sex*eyecolor. So if I needed to know how many white females have green eyes I will be able to have one cell that gives the N of that specific category. I can't for the life of me figure this out. The best advice I've had so far is to use a PROC FREQ procedure, but this generates many tables for each possibility, and I need one big table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=mn1;
tables iedtotal_50*iedpreed_50*iededs_50*school_2*bc_1*pb_method*wm_cog_admin/ nopercent nocol norow;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Could anyone help me with this? I'm sure someone out there must know how to do this. Appreciate it.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Mar 2018 15:41:43 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-03-16T15:41:43Z</dc:date>
    <item>
      <title>Big Crosstab for N in 5 categorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Big-Crosstab-for-N-in-5-categorical-variables/m-p/446215#M111923</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm struggling to make a certain type of table I've been asked for. In essence, I need a crosstab table of all of my categorical variables so I will know cell counts. So, for example, if I had race, sex, and eye color then I will need a table of Race*sex*eyecolor by race*sex*eyecolor. So if I needed to know how many white females have green eyes I will be able to have one cell that gives the N of that specific category. I can't for the life of me figure this out. The best advice I've had so far is to use a PROC FREQ procedure, but this generates many tables for each possibility, and I need one big table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=mn1;
tables iedtotal_50*iedpreed_50*iededs_50*school_2*bc_1*pb_method*wm_cog_admin/ nopercent nocol norow;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Could anyone help me with this? I'm sure someone out there must know how to do this. Appreciate it.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 15:23:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Big-Crosstab-for-N-in-5-categorical-variables/m-p/446215#M111923</guid>
      <dc:creator>TMSmith</dc:creator>
      <dc:date>2018-03-16T15:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Big Crosstab for N in 5 categorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Big-Crosstab-for-N-in-5-categorical-variables/m-p/446227#M111928</link>
      <description>&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;freq&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;mn1&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;tables&lt;/SPAN&gt; iedtotal_50&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;iedpreed_50&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;iededs_50&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;school_2&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;bc_1&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;pb_method&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;wm_cog_admin&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; out=want list nopercent nocol norow&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try that, the LIST to create a list table instead and an OUT to output a data set with the data instead of a report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/172002"&gt;@TMSmith&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm struggling to make a certain type of table I've been asked for. In essence, I need a crosstab table of all of my categorical variables so I will know cell counts. So, for example, if I had race, sex, and eye color then I will need a table of Race*sex*eyecolor by race*sex*eyecolor. So if I needed to know how many white females have green eyes I will be able to have one cell that gives the N of that specific category. I can't for the life of me figure this out. The best advice I've had so far is to use a PROC FREQ procedure, but this generates many tables for each possibility, and I need one big table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=mn1;
tables iedtotal_50*iedpreed_50*iededs_50*school_2*bc_1*pb_method*wm_cog_admin/ nopercent nocol norow;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Could anyone help me with this? I'm sure someone out there must know how to do this. Appreciate it.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 15:41:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Big-Crosstab-for-N-in-5-categorical-variables/m-p/446227#M111928</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-16T15:41:43Z</dc:date>
    </item>
  </channel>
</rss>

