<?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 How to summarize the frequency distribution for all variables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-summarize-the-frequency-distribution-for-all-variables/m-p/28640#M6671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without any example data given this is just a blind guess:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc summary data=work.bob;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class age sex marriage status;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output out=work.frequencies;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jul 2011 11:28:07 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2011-07-11T11:28:07Z</dc:date>
    <item>
      <title>How to summarize the frequency distribution for all variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-summarize-the-frequency-distribution-for-all-variables/m-p/28638#M6669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to summarize the frequency distribution for all the nominal variables in a dataset. Suppose the four nominal variables are: age (Y, M, O), sex (M, F), marriage (S, D, M, C), status (H, M, L). You can see here each nominal variable has multiple levels, My task is to summarize the frequency for each level of the variables. I don't want to use separate steps of PROC FREQ or PROC SUMMARY to do this. I want to get the results in a single procedure and save the results in a data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 09:42:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-summarize-the-frequency-distribution-for-all-variables/m-p/28638#M6669</guid>
      <dc:creator>bncoxuk</dc:creator>
      <dc:date>2011-07-11T09:42:01Z</dc:date>
    </item>
    <item>
      <title>How to summarize the frequency distribution for all variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-summarize-the-frequency-distribution-for-all-variables/m-p/28639#M6670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I think PROC MEANS would give everything you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=have noprint;&lt;/P&gt;&lt;P&gt;class age sex marriage status;&lt;/P&gt;&lt;P&gt;var variablename; /*put in all that you need here*/&lt;/P&gt;&lt;P&gt;output out=want;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at work.want.&amp;nbsp; The _FREQ_ variable will give the counts, _TYPE_ would give all the possible combinations, so that you could slice and dice as needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 11:24:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-summarize-the-frequency-distribution-for-all-variables/m-p/28639#M6670</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2011-07-11T11:24:41Z</dc:date>
    </item>
    <item>
      <title>How to summarize the frequency distribution for all variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-summarize-the-frequency-distribution-for-all-variables/m-p/28640#M6671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without any example data given this is just a blind guess:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc summary data=work.bob;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class age sex marriage status;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output out=work.frequencies;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 11:28:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-summarize-the-frequency-distribution-for-all-variables/m-p/28640#M6671</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2011-07-11T11:28:07Z</dc:date>
    </item>
    <item>
      <title>How to summarize the frequency distribution for all variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-summarize-the-frequency-distribution-for-all-variables/m-p/28641#M6672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like the stacked tables produced by PROC FREQ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;listing&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;close&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;freq&lt;/STRONG&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;=sashelp.class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;tables&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; sex age;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; OneWayFreqs=Freq;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;output&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;close&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;listing&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;print&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 12:00:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-summarize-the-frequency-distribution-for-all-variables/m-p/28641#M6672</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-07-11T12:00:50Z</dc:date>
    </item>
    <item>
      <title>How to summarize the frequency distribution for all variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-summarize-the-frequency-distribution-for-all-variables/m-p/28642#M6673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help. I tried every answer and all worked. So all are correct answer. The forum system cannot give me the rating of correct answer for all responses. So I just randomly pick one and make the others as helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 13:33:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-summarize-the-frequency-distribution-for-all-variables/m-p/28642#M6673</guid>
      <dc:creator>bncoxuk</dc:creator>
      <dc:date>2011-07-11T13:33:35Z</dc:date>
    </item>
  </channel>
</rss>

