<?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 Present frequencies in a data set, in a certain order. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Present-frequencies-in-a-data-set-in-a-certain-order/m-p/22628#M3678</link>
    <description>I have a SAS data set, DataSet1, with among others, a character variable City, that can take 15 different values(city names). I want to find the 5 most frequent cities. The 10 remaining should be counted under the name "Others".&lt;BR /&gt;
&lt;BR /&gt;
I want the frequencies presented in a &lt;B&gt;new SAS data set&lt;/B&gt;, DataSet2, with the two variables City and Number. Number should be in descending order, but 'Others' should always be placed last, like this:&lt;BR /&gt;
&lt;BR /&gt;
Paris 45&lt;BR /&gt;
Barcelona 41&lt;BR /&gt;
Rome 38&lt;BR /&gt;
Berlin 31&lt;BR /&gt;
London 28&lt;BR /&gt;
Others 42&lt;BR /&gt;
&lt;BR /&gt;
How can that be coded?</description>
    <pubDate>Thu, 23 Apr 2009 12:59:04 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-04-23T12:59:04Z</dc:date>
    <item>
      <title>Present frequencies in a data set, in a certain order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Present-frequencies-in-a-data-set-in-a-certain-order/m-p/22628#M3678</link>
      <description>I have a SAS data set, DataSet1, with among others, a character variable City, that can take 15 different values(city names). I want to find the 5 most frequent cities. The 10 remaining should be counted under the name "Others".&lt;BR /&gt;
&lt;BR /&gt;
I want the frequencies presented in a &lt;B&gt;new SAS data set&lt;/B&gt;, DataSet2, with the two variables City and Number. Number should be in descending order, but 'Others' should always be placed last, like this:&lt;BR /&gt;
&lt;BR /&gt;
Paris 45&lt;BR /&gt;
Barcelona 41&lt;BR /&gt;
Rome 38&lt;BR /&gt;
Berlin 31&lt;BR /&gt;
London 28&lt;BR /&gt;
Others 42&lt;BR /&gt;
&lt;BR /&gt;
How can that be coded?</description>
      <pubDate>Thu, 23 Apr 2009 12:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Present-frequencies-in-a-data-set-in-a-certain-order/m-p/22628#M3678</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-23T12:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Present frequencies in a data set, in a certain order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Present-frequencies-in-a-data-set-in-a-certain-order/m-p/22629#M3679</link>
      <description>If you have SAS/QC, then proc pareto will do this for you.</description>
      <pubDate>Thu, 23 Apr 2009 13:01:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Present-frequencies-in-a-data-set-in-a-certain-order/m-p/22629#M3679</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2009-04-23T13:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Present frequencies in a data set, in a certain order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Present-frequencies-in-a-data-set-in-a-certain-order/m-p/22630#M3680</link>
      <description>I don't have SAS/QC.</description>
      <pubDate>Thu, 23 Apr 2009 17:43:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Present-frequencies-in-a-data-set-in-a-certain-order/m-p/22630#M3680</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-23T17:43:45Z</dc:date>
    </item>
  </channel>
</rss>

