<?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: just want to create a simple table from proc freq in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/just-want-to-create-a-simple-table-from-proc-freq/m-p/375411#M90003</link>
    <description>&lt;P&gt;thanks Reeza for your prompt response&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this solves my problem, thanks again&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2017 16:34:45 GMT</pubDate>
    <dc:creator>rykwong</dc:creator>
    <dc:date>2017-07-12T16:34:45Z</dc:date>
    <item>
      <title>just want to create a simple table from proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/just-want-to-create-a-simple-table-from-proc-freq/m-p/375340#M89967</link>
      <description>&lt;P&gt;Dear SAS communities&lt;/P&gt;
&lt;P&gt;I have a excel dataset that contains a 50 binary variables (e.g. history of diabetes: 1/0 etc), a variable "center" which contains the name of one of 10 hospitals&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just want to create a summary stats excel table&amp;nbsp;where each of the 50 binary variables is listed as a line like this&lt;/P&gt;
&lt;P&gt;variable &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; N. &amp;nbsp; &amp;nbsp; &amp;nbsp; Nmiss. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;frequent "0" &amp;nbsp; &amp;nbsp; &amp;nbsp;percentage "0" &amp;nbsp;&amp;nbsp;&lt;SPAN&gt; frequent "0" &amp;nbsp; &amp;nbsp; &amp;nbsp;percentage "0" &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;hx_diabetes. &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xx. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xx%. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;yy. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; yy%. &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;hx_stroke &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xx%. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;yy. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; yy%. &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;then sort by "center" to output the same table restricting to each of the "center"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if you have a code that I can borrow, I would be grateful. &amp;nbsp;Thanks&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 14:46:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/just-want-to-create-a-simple-table-from-proc-freq/m-p/375340#M89967</guid>
      <dc:creator>rykwong</dc:creator>
      <dc:date>2017-07-12T14:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: just want to create a simple table from proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/just-want-to-create-a-simple-table-from-proc-freq/m-p/375346#M89971</link>
      <description>&lt;P&gt;Your last variables are duplicated so not sure what you're looking for there. Otherwise this can be standard output from PROC MEANS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC MEANS can do the N, NMISS. Frequency of a 1/0 variable is the SUM and Percentage is the Mean.&lt;/P&gt;
&lt;P&gt;Note that you'll get a value for the Overall as well &amp;nbsp;as each facility with this code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=have out=want stackods n nmiss sum mean;
class hospital;
var hx_: ; *use all hx variables;
ods output summary=MySummary;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jul 2017 14:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/just-want-to-create-a-simple-table-from-proc-freq/m-p/375346#M89971</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-12T14:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: just want to create a simple table from proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/just-want-to-create-a-simple-table-from-proc-freq/m-p/375357#M89976</link>
      <description>&lt;P&gt;thanks Reeza for your prompt response&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this solves my problem, thanks again&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:11:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/just-want-to-create-a-simple-table-from-proc-freq/m-p/375357#M89976</guid>
      <dc:creator>rykwong</dc:creator>
      <dc:date>2017-07-12T15:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: just want to create a simple table from proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/just-want-to-create-a-simple-table-from-proc-freq/m-p/375411#M90003</link>
      <description>&lt;P&gt;thanks Reeza for your prompt response&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this solves my problem, thanks again&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 16:34:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/just-want-to-create-a-simple-table-from-proc-freq/m-p/375411#M90003</guid>
      <dc:creator>rykwong</dc:creator>
      <dc:date>2017-07-12T16:34:45Z</dc:date>
    </item>
  </channel>
</rss>

