<?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 Finding the Range or the Max, Min in a Proc Freq Procedure in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-Range-or-the-Max-Min-in-a-Proc-Freq-Procedure/m-p/533026#M6124</link>
    <description>&lt;P&gt;Is there a code that you can use within a proc freq procedure to find a range of values for a categorical variable? For example, if you are dividing work experience (years) into various categories (&amp;lt;=2, 3-9, 10-14, &amp;gt;15),&amp;nbsp; is there a way to find a range for the number of years worked? Thanks!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Feb 2019 18:00:18 GMT</pubDate>
    <dc:creator>JackZ295</dc:creator>
    <dc:date>2019-02-05T18:00:18Z</dc:date>
    <item>
      <title>Finding the Range or the Max, Min in a Proc Freq Procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-Range-or-the-Max-Min-in-a-Proc-Freq-Procedure/m-p/533026#M6124</link>
      <description>&lt;P&gt;Is there a code that you can use within a proc freq procedure to find a range of values for a categorical variable? For example, if you are dividing work experience (years) into various categories (&amp;lt;=2, 3-9, 10-14, &amp;gt;15),&amp;nbsp; is there a way to find a range for the number of years worked? Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 18:00:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Finding-the-Range-or-the-Max-Min-in-a-Proc-Freq-Procedure/m-p/533026#M6124</guid>
      <dc:creator>JackZ295</dc:creator>
      <dc:date>2019-02-05T18:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the Range or the Max, Min in a Proc Freq Procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-Range-or-the-Max-Min-in-a-Proc-Freq-Procedure/m-p/533029#M6125</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;... find a range of values for a categorical variable?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Years worked is categorical. PROC FREQ will automatically find all levels in the data set, so it seems to me that you could then determine visually from the PROC FREQ output the "range" (although "range", "min" and "max" is not really defined for categorical variables).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 18:16:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Finding-the-Range-or-the-Max-Min-in-a-Proc-Freq-Procedure/m-p/533029#M6125</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-05T18:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the Range or the Max, Min in a Proc Freq Procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-Range-or-the-Max-Min-in-a-Proc-Freq-Procedure/m-p/533032#M6127</link>
      <description>&lt;P&gt;Creating groups from a numeric sort of continuous variable is often done using a custom format.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;proc format library=work;
value yearrange
0 - 2 = '&amp;lt;=2'
3 - 9 = '3 to 9'
10-14 = '10 to 14'
15 - high='15+'
;
run;

proc freq data=have;
   tables yearvariable;
   format yearvariable yearrange.;
run;&lt;/PRE&gt;
&lt;P&gt;Above is designed to work with integer years. The proc format range descriptors on the left side of the = signs above include the ability to do strictly less than or strictly greater than using the &amp;lt; in conjunction with the - interval indicator.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A nice thing about formats is you could describe a different set of ranges such as 0 - 9 and 9+ and only have to change the format in proc freq or most other analysis procedures to use a different set of ranges.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 18:46:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Finding-the-Range-or-the-Max-Min-in-a-Proc-Freq-Procedure/m-p/533032#M6127</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-05T18:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the Range or the Max, Min in a Proc Freq Procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-Range-or-the-Max-Min-in-a-Proc-Freq-Procedure/m-p/533078#M6137</link>
      <description>Are you looking for PROC RANK, which can create equal sized buckets or something else?</description>
      <pubDate>Tue, 05 Feb 2019 20:43:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Finding-the-Range-or-the-Max-Min-in-a-Proc-Freq-Procedure/m-p/533078#M6137</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-05T20:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the Range or the Max, Min in a Proc Freq Procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-Range-or-the-Max-Min-in-a-Proc-Freq-Procedure/m-p/533086#M6139</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/213376"&gt;@JackZ295&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there a code that you can use within a proc freq procedure to find a range of values for a categorical variable? For example, if you are dividing work experience (years) into various categories (&amp;lt;=2, 3-9, 10-14, &amp;gt;15),&amp;nbsp; is there a way to find a range for the number of years worked? Thanks!&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Likely time to provide example input data and the desired result for that input data.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 21:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Finding-the-Range-or-the-Max-Min-in-a-Proc-Freq-Procedure/m-p/533086#M6139</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-05T21:46:32Z</dc:date>
    </item>
  </channel>
</rss>

