<?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 group count? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-group-count/m-p/513454#M73141</link>
    <description>Sounds like a standard PROC FREQ. Did that not work for some reason?</description>
    <pubDate>Thu, 15 Nov 2018 17:15:03 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-11-15T17:15:03Z</dc:date>
    <item>
      <title>Proc Freq group count?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-group-count/m-p/513452#M73140</link>
      <description>&lt;P&gt;Hi all:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a dataset around 16K obs.&amp;nbsp;&amp;nbsp; I would like to create a table with count for variable Place with difference Race.&amp;nbsp; For example, the Place include CA, GA, NY, etc.&amp;nbsp; The Race include White, Asian, African American, etc.&amp;nbsp;&amp;nbsp; I would like to know the different&amp;nbsp;race counts in CA, etc.&amp;nbsp;&amp;nbsp; Please advice how to approach them, maybe Proe Freq Group?&amp;nbsp; Also, I would like to including the missing number.&amp;nbsp;&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 17:14:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-group-count/m-p/513452#M73140</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2018-11-15T17:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq group count?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-group-count/m-p/513454#M73141</link>
      <description>Sounds like a standard PROC FREQ. Did that not work for some reason?</description>
      <pubDate>Thu, 15 Nov 2018 17:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-group-count/m-p/513454#M73141</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-15T17:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq group count?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-group-count/m-p/513487#M73142</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67134"&gt;@ybz12003&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a dataset around 16K obs.&amp;nbsp;&amp;nbsp; I would like to create a table with count for variable Place with difference Race.&amp;nbsp; For example, the Place include CA, GA, NY, etc.&amp;nbsp; The Race include White, Asian, African American, etc.&amp;nbsp;&amp;nbsp; I would like to know the different&amp;nbsp;race counts in CA, etc.&amp;nbsp;&amp;nbsp; Please advice how to approach them, maybe Proe Freq Group?&amp;nbsp; Also, I would like to including the missing number.&amp;nbsp;&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And what do you mean by "include missing number"? Do mean you want a "count" of 0 for a race that does not occur in a specific place?&lt;/P&gt;
&lt;P&gt;Do you want data set or a report?&lt;/P&gt;
&lt;P&gt;One way for a report that people read might be&lt;/P&gt;
&lt;PRE&gt;data example;
   input place race;
datalines;
1 1
1 2
1 3
1 2
1 3
1 2
1 3
1 4
2 1
2 2
2 1
2 2
2 4
. 1
;
run;

proc tabulate data=example;
  class place race /missing;
  table place,
        race*n=''
        /misstext='0'
   ;
run;&lt;/PRE&gt;
&lt;P&gt;I didn't bother to fake character values for place as I'm feeling lazy. The Tabulate part doesn't really care if a class variable is numeric or character the main difference is how missing values would display.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also if you have FORMATS for the place and race an option of PRELOADFMT would help if a specific expected value never actually appears in the data.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 17:49:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-group-count/m-p/513487#M73142</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-11-15T17:49:52Z</dc:date>
    </item>
  </channel>
</rss>

