<?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 ques in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-ques/m-p/17494#M3324</link>
    <description>Hi:&lt;BR /&gt;
  You did not say what you destination of choice was, or whether you wanted to see the report in one big table or in smaller tables (one for Cardio, one for Respiratory, etc).&lt;BR /&gt;
&lt;BR /&gt;
  It really depends on how you want the results to appear. These examples with SASHELP.SHOES can help you contrast the way the output looks with PROC TABULATE (one big table by default) versus PROC FREQ (a separate table for each variable by default).&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods html file='c:\temp\use_tab_freq.html' style=sasweb;&lt;BR /&gt;
   &lt;BR /&gt;
proc tabulate data=sashelp.shoes;&lt;BR /&gt;
  title '1) TABULATE approach';&lt;BR /&gt;
  where region in ('Asia', 'Pacific','Canada') and&lt;BR /&gt;
        product in ('Sandal', 'Slipper');&lt;BR /&gt;
  class product region;&lt;BR /&gt;
  table product region,&lt;BR /&gt;
        n pctn;&lt;BR /&gt;
  keylabel n='Frequency'&lt;BR /&gt;
           pctn = 'Percent';&lt;BR /&gt;
run;&lt;BR /&gt;
             &lt;BR /&gt;
proc freq data=sashelp.shoes;&lt;BR /&gt;
  title '2) FREQ approach';&lt;BR /&gt;
  where region in ('Asia', 'Pacific','Canada') and&lt;BR /&gt;
        product in ('Sandal', 'Slipper');&lt;BR /&gt;
  tables product region / nocum;&lt;BR /&gt;
run; &lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Mon, 20 Jun 2011 17:02:28 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2011-06-20T17:02:28Z</dc:date>
    <item>
      <title>proc freq ques</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-ques/m-p/17493#M3323</link>
      <description>Hi &lt;BR /&gt;
   I have a table of labtesting where i have the columns cardio ,Repiratory ,abdomen etc.How to find the frequncy and percent of values in those columns(under cardio i have NAD NS S1S2N).My resulting table shud look like the below.	                       &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
                                           N	              Percent&lt;BR /&gt;
Cardio		&lt;BR /&gt;
                NAD                    5		   25&lt;BR /&gt;
                Ns                      10                     30&lt;BR /&gt;
                S1S2N	           5		   25&lt;BR /&gt;
&lt;BR /&gt;
Respiratory		&lt;BR /&gt;
              Clear NVBS	          5		   25&lt;BR /&gt;
              NAD	          10                     30&lt;BR /&gt;
&lt;BR /&gt;
Central Nervous System		&lt;BR /&gt;
              Clinically N	          12                      45	&lt;BR /&gt;
              NAD                       5                      35</description>
      <pubDate>Mon, 20 Jun 2011 16:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-ques/m-p/17493#M3323</guid>
      <dc:creator>sonyk</dc:creator>
      <dc:date>2011-06-20T16:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq ques</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-ques/m-p/17494#M3324</link>
      <description>Hi:&lt;BR /&gt;
  You did not say what you destination of choice was, or whether you wanted to see the report in one big table or in smaller tables (one for Cardio, one for Respiratory, etc).&lt;BR /&gt;
&lt;BR /&gt;
  It really depends on how you want the results to appear. These examples with SASHELP.SHOES can help you contrast the way the output looks with PROC TABULATE (one big table by default) versus PROC FREQ (a separate table for each variable by default).&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods html file='c:\temp\use_tab_freq.html' style=sasweb;&lt;BR /&gt;
   &lt;BR /&gt;
proc tabulate data=sashelp.shoes;&lt;BR /&gt;
  title '1) TABULATE approach';&lt;BR /&gt;
  where region in ('Asia', 'Pacific','Canada') and&lt;BR /&gt;
        product in ('Sandal', 'Slipper');&lt;BR /&gt;
  class product region;&lt;BR /&gt;
  table product region,&lt;BR /&gt;
        n pctn;&lt;BR /&gt;
  keylabel n='Frequency'&lt;BR /&gt;
           pctn = 'Percent';&lt;BR /&gt;
run;&lt;BR /&gt;
             &lt;BR /&gt;
proc freq data=sashelp.shoes;&lt;BR /&gt;
  title '2) FREQ approach';&lt;BR /&gt;
  where region in ('Asia', 'Pacific','Canada') and&lt;BR /&gt;
        product in ('Sandal', 'Slipper');&lt;BR /&gt;
  tables product region / nocum;&lt;BR /&gt;
run; &lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 20 Jun 2011 17:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-ques/m-p/17494#M3324</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-06-20T17:02:28Z</dc:date>
    </item>
  </channel>
</rss>

