<?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: Find the TOP X % and the Bottom X % in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Find-the-TOP-X-and-the-Bottom-X/m-p/416914#M102393</link>
    <description>&lt;P&gt;Also, use option&lt;STRONG&gt; NEXTROBS=n&lt;/STRONG&gt; in proc univariate to display the n highest and n lowest observations.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2017 23:39:00 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2017-11-28T23:39:00Z</dc:date>
    <item>
      <title>Find the TOP X % and the Bottom X %</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-the-TOP-X-and-the-Bottom-X/m-p/416909#M102391</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I have one column in a dataset with 5M Rows of data. I'm trying to understand the range of values and figure out the general distribution.&amp;nbsp;&amp;nbsp;How would I select a percentage of the highest amounts and a percentage of the lowest amounts?&amp;nbsp;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 23:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-the-TOP-X-and-the-Bottom-X/m-p/416909#M102391</guid>
      <dc:creator>JayCompany</dc:creator>
      <dc:date>2017-11-28T23:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Find the TOP X % and the Bottom X %</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-the-TOP-X-and-the-Bottom-X/m-p/416910#M102392</link>
      <description>&lt;P&gt;I would recommend a histogram first - using PROC UNIVARIATE.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It also displays the highest.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I would also recommend PROC RANK.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rank the variable of interest using groups of 100, then you can find all less than X% by choosing all less than the Xth rank. Note how it handles tied values though - and that's one reason I prefer this methodology. It can account for ties where some of the manual methodologies will not, by default, so you need extra coding.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 23:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-the-TOP-X-and-the-Bottom-X/m-p/416910#M102392</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-28T23:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Find the TOP X % and the Bottom X %</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-the-TOP-X-and-the-Bottom-X/m-p/416914#M102393</link>
      <description>&lt;P&gt;Also, use option&lt;STRONG&gt; NEXTROBS=n&lt;/STRONG&gt; in proc univariate to display the n highest and n lowest observations.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 23:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-the-TOP-X-and-the-Bottom-X/m-p/416914#M102393</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-28T23:39:00Z</dc:date>
    </item>
  </channel>
</rss>

