<?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: Frequency and multiple variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Frequency-and-multiple-variables/m-p/630422#M186640</link>
    <description>&lt;P&gt;You can't mix PROC FREQ code with PROC FORMAT code. It should look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value dim_groups 0-50='0-50' 51-76='51-76' ... ; /* You type the rest */
run;

proc freq data=have;
    tables dim;
    format dim dim_groups.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I also have two Variables -- VARA and VARB.&amp;nbsp; I want to find the Average, MIN and MAX of those variables in each of these groups.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=have;
    var vara varb;
    class dim;
    format dim dim_groups.;
    output out=stats mean= min=min_vara min_varb
        max=max_vara max_varb;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 07 Mar 2020 21:42:59 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-03-07T21:42:59Z</dc:date>
    <item>
      <title>Frequency and multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-and-multiple-variables/m-p/630410#M186633</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear All:&lt;/P&gt;&lt;P&gt;This is the code I wrote&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Proc freq data = have;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;Tables DIM;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#da4444"&gt;Format DIM DIM_groups.;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;0-50&amp;nbsp; &amp;nbsp; =&amp;nbsp; &amp;nbsp;'0-50';&lt;/P&gt;&lt;P&gt;51-76&amp;nbsp; =&amp;nbsp; &amp;nbsp;'51-76'&lt;/P&gt;&lt;P&gt;76-100 = ''76-100'&lt;/P&gt;&lt;P&gt;&amp;gt;100 = '&amp;gt;100'&lt;BR /&gt;&lt;SPAN&gt;Run;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also have two Variables -- VARA and VARB.&amp;nbsp; I want to find the Average, MIN and MAX of those variables in each of these groups.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can someone help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Randy.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2020 20:14:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-and-multiple-variables/m-p/630410#M186633</guid>
      <dc:creator>RandyStan</dc:creator>
      <dc:date>2020-03-07T20:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency and multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-and-multiple-variables/m-p/630422#M186640</link>
      <description>&lt;P&gt;You can't mix PROC FREQ code with PROC FORMAT code. It should look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value dim_groups 0-50='0-50' 51-76='51-76' ... ; /* You type the rest */
run;

proc freq data=have;
    tables dim;
    format dim dim_groups.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I also have two Variables -- VARA and VARB.&amp;nbsp; I want to find the Average, MIN and MAX of those variables in each of these groups.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=have;
    var vara varb;
    class dim;
    format dim dim_groups.;
    output out=stats mean= min=min_vara min_varb
        max=max_vara max_varb;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 07 Mar 2020 21:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-and-multiple-variables/m-p/630422#M186640</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-07T21:42:59Z</dc:date>
    </item>
  </channel>
</rss>

