<?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 Manipulating proc freq output in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Manipulating-proc-freq-output/m-p/16720#M3111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry about that Art. I did use this code: &lt;/P&gt;&lt;P&gt;proc freq data=sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; tables age;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by name;&lt;/P&gt;&lt;P&gt;But I had so many names that I could manipulate the outputed data like I had wanted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found that if I created a dataset of the frequencies of age*name, the dataset created was much more manageable in excel. &lt;/P&gt;&lt;P&gt;Thank you for your help and input &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; always helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Sep 2011 13:48:46 GMT</pubDate>
    <dc:creator>HyunJee</dc:creator>
    <dc:date>2011-09-26T13:48:46Z</dc:date>
    <item>
      <title>Manipulating proc freq output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Manipulating-proc-freq-output/m-p/16717#M3108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created some proc freq table of diagnosis codes by patient. In the output, the tables have the patient="patient name" listed at the top of every table. Is there any way to create a table with the patient name as a column in the frequency table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so instead of being formatted as such:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; patient&lt;/P&gt;&lt;P&gt;diagnosis&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; frequency&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; percent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would be like this instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;patient&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; diagnosis&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; frequency&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; percent&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 13:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Manipulating-proc-freq-output/m-p/16717#M3108</guid>
      <dc:creator>HyunJee</dc:creator>
      <dc:date>2011-09-26T13:23:32Z</dc:date>
    </item>
    <item>
      <title>Manipulating proc freq output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Manipulating-proc-freq-output/m-p/16718#M3109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You didn't provide the code you were using, sample data, and/or the result you want to obtain.&amp;nbsp; It sounds like you are currently using patient as a by variable and simply want to include it in your tables statement.&amp;nbsp; e.g.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; tables name*age;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; instead of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; tables age;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by name;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 13:46:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Manipulating-proc-freq-output/m-p/16718#M3109</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-26T13:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating proc freq output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Manipulating-proc-freq-output/m-p/16719#M3110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I figured out on possible option. I wanted to post the answer I had come to. Create a dataset of the frequencies. This will give what I was wanting above. Works great too.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=dataset noprint;&lt;/P&gt;&lt;P&gt;tables diagnosis*patient/norow nocol nopercent out = freq_pt_dx;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 13:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Manipulating-proc-freq-output/m-p/16719#M3110</guid>
      <dc:creator>HyunJee</dc:creator>
      <dc:date>2011-09-26T13:46:39Z</dc:date>
    </item>
    <item>
      <title>Manipulating proc freq output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Manipulating-proc-freq-output/m-p/16720#M3111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry about that Art. I did use this code: &lt;/P&gt;&lt;P&gt;proc freq data=sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; tables age;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by name;&lt;/P&gt;&lt;P&gt;But I had so many names that I could manipulate the outputed data like I had wanted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found that if I created a dataset of the frequencies of age*name, the dataset created was much more manageable in excel. &lt;/P&gt;&lt;P&gt;Thank you for your help and input &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; always helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 13:48:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Manipulating-proc-freq-output/m-p/16720#M3111</guid>
      <dc:creator>HyunJee</dc:creator>
      <dc:date>2011-09-26T13:48:46Z</dc:date>
    </item>
    <item>
      <title>Manipulating proc freq output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Manipulating-proc-freq-output/m-p/16721#M3112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Art says add PATIENT to your TABLES statement.&amp;nbsp; If you want it as a list then use the LIST option.&amp;nbsp; Otherwise you will get a grid with #rows equal to the number of patients and #cols equal to the number of categories.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES patient*diagnosis / list ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 13:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Manipulating-proc-freq-output/m-p/16721#M3112</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-09-26T13:49:43Z</dc:date>
    </item>
  </channel>
</rss>

