<?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: Use proc means better in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Use-proc-means-better/m-p/304810#M64908</link>
    <description>&lt;P&gt;If you are looking for this in one table another option would be one of the report procedures such as Tabulate or Report&lt;/P&gt;
&lt;P&gt;here's a Tabulate example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=work.aa;
   class sex crace msmoke pvprem newmeduc/missing;
   var bwt;
   table  sex crace msmoke pvprem newmeduc,
          bwt*(n mean std Min Max);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 14 Oct 2016 22:16:39 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-10-14T22:16:39Z</dc:date>
    <item>
      <title>Use proc means better</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-proc-means-better/m-p/304796#M64900</link>
      <description>&lt;P&gt;I was using this code to build a demographic table. How can I use one proc means to complete this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="page"&gt;&lt;DIV class="section"&gt;&lt;DIV class="layoutArea"&gt;&lt;DIV class="column"&gt;&lt;P&gt;proc means data=Work.aa;&lt;/P&gt;&lt;P&gt;var bwt;&lt;/P&gt;&lt;P&gt;class sex;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc means data=Work.aa;&lt;/P&gt;&lt;P&gt;var bwt;&lt;/P&gt;&lt;P&gt;class crace;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc means data=Work.aa;&lt;/P&gt;&lt;P&gt;var bwt;&lt;/P&gt;&lt;P&gt;class msmoke;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc means data=Work.aa;&lt;/P&gt;&lt;P&gt;var bwt;&lt;/P&gt;&lt;P&gt;class pvprem;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc means data=Work.aa;&lt;/P&gt;&lt;P&gt;var bwt;&lt;/P&gt;&lt;P&gt;class newmeduc;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Oct 2016 21:28:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-proc-means-better/m-p/304796#M64900</guid>
      <dc:creator>tony7zxzx</dc:creator>
      <dc:date>2016-10-14T21:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Use proc means better</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-proc-means-better/m-p/304802#M64904</link>
      <description>&lt;P&gt;You can try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc means data=Work.aa NWAY &amp;nbsp;/* options: &amp;nbsp;missing noprint ? */ &amp;nbsp;;&lt;/P&gt;&lt;P&gt;class sex &amp;nbsp; crace bwt msmoke pvperm newmeduc;&lt;/P&gt;&lt;P&gt;var bwt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* optionally add and look at the output dataset &amp;nbsp; my_stat */&lt;/P&gt;&lt;P&gt;output out=my_stat &amp;nbsp;/* ... list of statistics desired */ &amp;nbsp;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 21:16:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-proc-means-better/m-p/304802#M64904</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-10-14T21:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Use proc means better</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-proc-means-better/m-p/304805#M64905</link>
      <description>&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5304iE9379222DEAC1D9C/image-size/medium?v=v2&amp;amp;px=-1" border="0" alt="Screen Shot 2016-10-14 at 5.29.29 PM.png" title="Screen Shot 2016-10-14 at 5.29.29 PM.png" /&gt;&lt;/P&gt;&lt;P&gt;Bwt is a continues variable.&lt;/P&gt;&lt;P&gt;All my 5 virable after class are categorical variable.&lt;/P&gt;&lt;P&gt;I use my code to get 5 tables like this. I am trying to use some options in proc means to generate 5 table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 21:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-proc-means-better/m-p/304805#M64905</guid>
      <dc:creator>tony7zxzx</dc:creator>
      <dc:date>2016-10-14T21:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use proc means better</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-proc-means-better/m-p/304808#M64906</link>
      <description>&lt;P&gt;Use the WAYS or TYPES statement. WAYS is easier in this case. If you don't specify WAYS or TYPES you get all levels of analysis and then it's hard to filter out what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=Work.aa;

class sex crace msmoke pvprem newmeduc;

WAYS 1; *says only 1 level analysis;

var bwt;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/68954/HTML/default/viewer.htm#n1affq2dctdc8un1eokb50s12qbg.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/68954/HTML/default/viewer.htm#n1affq2dctdc8un1eokb50s12qbg.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 22:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-proc-means-better/m-p/304808#M64906</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-14T22:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Use proc means better</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-proc-means-better/m-p/304810#M64908</link>
      <description>&lt;P&gt;If you are looking for this in one table another option would be one of the report procedures such as Tabulate or Report&lt;/P&gt;
&lt;P&gt;here's a Tabulate example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=work.aa;
   class sex crace msmoke pvprem newmeduc/missing;
   var bwt;
   table  sex crace msmoke pvprem newmeduc,
          bwt*(n mean std Min Max);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Oct 2016 22:16:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-proc-means-better/m-p/304810#M64908</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-14T22:16:39Z</dc:date>
    </item>
  </channel>
</rss>

