<?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 distribution in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Frequency-distribution/m-p/466253#M285284</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/53251"&gt;@KrisNori&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have the below shown parts data that shows the increase/decrease in usage.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="172"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="86"&gt;Part&lt;/TD&gt;
&lt;TD width="86"&gt;usage change&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;ABC5601&lt;/TD&gt;
&lt;TD&gt;10%&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;ABC7551&lt;/TD&gt;
&lt;TD&gt;-5%&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;ABC8206&lt;/TD&gt;
&lt;TD&gt;15%&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create a frequency distribution as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="142"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="74"&gt;distribution&lt;/TD&gt;
&lt;TD width="68"&gt;Part count&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1% to 5%&lt;/TD&gt;
&lt;TD&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;6% to 10%&lt;/TD&gt;
&lt;TD&gt;15&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;(5%) to (1%)&lt;/TD&gt;
&lt;TD&gt;10&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any sas proc that takes the interval value as input and create a freq distribution table ?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You may have to provide a little more data such as input that would allow use to create the example output from.&lt;/P&gt;
&lt;P&gt;If your "usage change" is a numeric variable this might be possible with proc freq and a custom format to create groups of values based on those values. Some concerns would arise on where the endpoints of your "distribution" column appears as I would expect that unless the values of that "usage change" have been rounded that you might have values like 5.4% (or 0.54) . So where the endpoint values for given display "range" should be would need some clarification.&lt;/P&gt;</description>
    <pubDate>Wed, 30 May 2018 20:58:07 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-05-30T20:58:07Z</dc:date>
    <item>
      <title>Frequency distribution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-distribution/m-p/466246#M285283</link>
      <description>&lt;P&gt;I have the below shown parts data that shows the increase/decrease in usage.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="172"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="86"&gt;Part&lt;/TD&gt;
&lt;TD width="86"&gt;usage change&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;ABC5601&lt;/TD&gt;
&lt;TD&gt;10%&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;ABC7551&lt;/TD&gt;
&lt;TD&gt;-5%&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;ABC8206&lt;/TD&gt;
&lt;TD&gt;15%&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create a frequency distribution as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="142"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="74"&gt;distribution&lt;/TD&gt;
&lt;TD width="68"&gt;Part count&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1% to 5%&lt;/TD&gt;
&lt;TD&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;6% to 10%&lt;/TD&gt;
&lt;TD&gt;15&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;(5%) to (1%)&lt;/TD&gt;
&lt;TD&gt;10&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any sas proc that takes the interval value as input and create a freq distribution table ?&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 20:46:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-distribution/m-p/466246#M285283</guid>
      <dc:creator>KrisNori</dc:creator>
      <dc:date>2018-05-30T20:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency distribution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-distribution/m-p/466253#M285284</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/53251"&gt;@KrisNori&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have the below shown parts data that shows the increase/decrease in usage.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="172"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="86"&gt;Part&lt;/TD&gt;
&lt;TD width="86"&gt;usage change&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;ABC5601&lt;/TD&gt;
&lt;TD&gt;10%&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;ABC7551&lt;/TD&gt;
&lt;TD&gt;-5%&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;ABC8206&lt;/TD&gt;
&lt;TD&gt;15%&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create a frequency distribution as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="142"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="74"&gt;distribution&lt;/TD&gt;
&lt;TD width="68"&gt;Part count&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1% to 5%&lt;/TD&gt;
&lt;TD&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;6% to 10%&lt;/TD&gt;
&lt;TD&gt;15&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;(5%) to (1%)&lt;/TD&gt;
&lt;TD&gt;10&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any sas proc that takes the interval value as input and create a freq distribution table ?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You may have to provide a little more data such as input that would allow use to create the example output from.&lt;/P&gt;
&lt;P&gt;If your "usage change" is a numeric variable this might be possible with proc freq and a custom format to create groups of values based on those values. Some concerns would arise on where the endpoints of your "distribution" column appears as I would expect that unless the values of that "usage change" have been rounded that you might have values like 5.4% (or 0.54) . So where the endpoint values for given display "range" should be would need some clarification.&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 20:58:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-distribution/m-p/466253#M285284</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-30T20:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency distribution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-distribution/m-p/466258#M285285</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/53251"&gt;@KrisNori&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any sas proc that takes the interval value as input and create a freq distribution table ?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;PROC FREQ and apply a format on the value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*create the format;
proc format;
value age_group
low - 13 = 'Pre-Teen'
13 - 15 = 'Teen'
16 - high = 'Adult';
run;

*Summarize data
proc freq data=sashelp.class;
table age / out=want;
format age age_group.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The want data set has the summarized data in a data set. Do note that the variable AGE has the underlying values still present but a format applied which can be confusing at first if you're just starting out with formats.&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 21:19:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-distribution/m-p/466258#M285285</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-30T21:19:10Z</dc:date>
    </item>
  </channel>
</rss>

