<?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: Proc univariate to calculate the percentile of data where several observations have one value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-univariate-to-calculate-the-percentile-of-data-where/m-p/293939#M61291</link>
    <description>&lt;P&gt;Look at proc rank instead and how it deals with ties.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As KSharp mentioned these are not percentiles so be careful when referencing your analysis to not refer to them as such.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2016 05:47:42 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-08-25T05:47:42Z</dc:date>
    <item>
      <title>Proc univariate to calculate the percentile of data where several observations have one value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-univariate-to-calculate-the-percentile-of-data-where/m-p/293922#M61279</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to calculate percentiles for the following data (Actual data is quite large). &amp;nbsp;Many observations have same age 36.083; therefore, 70th, 80th and 90th percentile are same. Is there a way to calculate percentiles where the high number of observations do not affect the percentiles, and I can get different percentile values for each percentile.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;data have;&lt;BR /&gt;infile cards expandtabs truncover;&lt;BR /&gt;input stock date : yymmn6. age;&lt;BR /&gt;format date yymmn6.;&lt;BR /&gt;cards;&lt;BR /&gt;10006 196202 36.0833&lt;BR /&gt;14656 196202 36.0833&lt;BR /&gt;14664 196202 36.0833&lt;BR /&gt;14699 196202 36.0833&lt;BR /&gt;14701 196202 36.0833&lt;BR /&gt;14728 196202 36.0833&lt;BR /&gt;14736 196202 36.0833&lt;BR /&gt;14760 196202 36.0833&lt;BR /&gt;14779 196202 36.0833&lt;BR /&gt;14795 196202 36.0833&lt;BR /&gt;14816 196202 36.0833&lt;BR /&gt;14824 196202 36.0833&lt;BR /&gt;14859 196202 36.0833&lt;BR /&gt;14867 196202 36.0833&lt;BR /&gt;14875 196202 36.0833&lt;BR /&gt;14883 196202 36.0833&lt;BR /&gt;14891 196202 36.0833&lt;BR /&gt;14904 196202 36.0833&lt;BR /&gt;14912 196202 36.0833&lt;BR /&gt;14920 196202 36.0833&lt;BR /&gt;14955 196202 36.0833&lt;BR /&gt;15034 196202 36.0833&lt;BR /&gt;15499 196202 36.0833&lt;BR /&gt;15528 196202 36.0833&lt;BR /&gt;15560 196202 36.0833&lt;BR /&gt;15755 196202 36.0833&lt;BR /&gt;16029 196202 36.0833&lt;BR /&gt;16109 196202 36.0833&lt;BR /&gt;16117 196202 36.0833&lt;BR /&gt;16280 196202 36.0833&lt;BR /&gt;19334 196202 36.0833&lt;BR /&gt;25486 196202 36.0833&lt;BR /&gt;27561 196202 36.0833&lt;BR /&gt;27692 196202 36.0833&lt;BR /&gt;28513 196202 36.0833&lt;BR /&gt;75471 196202 36.0833&lt;BR /&gt;10014 196202 36&lt;BR /&gt;12298 196202 36&lt;BR /&gt;15536 196202 35.9167&lt;BR /&gt;15544 196202 35.9167&lt;BR /&gt;16985 196202 33.3333&lt;BR /&gt;17005 196202 33.3333&lt;BR /&gt;17013 196202 33.3333&lt;BR /&gt;17056 196202 33.25&lt;BR /&gt;17072 196202 33.25&lt;BR /&gt;17099 196202 33.25&lt;BR /&gt;17101 196202 33.25&lt;BR /&gt;17128 196202 33.1667&lt;BR /&gt;17144 196202 33.1667&lt;BR /&gt;17160 196202 33.1667&lt;BR /&gt;21573 196202 33.1667&lt;BR /&gt;17224 196202 33.0833&lt;BR /&gt;17232 196202 33.0833&lt;BR /&gt;17240 196202 33.0833&lt;BR /&gt;17267 196202 33.0833&lt;BR /&gt;17291 196202 33.0833&lt;BR /&gt;17304 196202 33&lt;BR /&gt;17312 196202 33&lt;BR /&gt;17320 196202 33&lt;BR /&gt;17339 196202 33&lt;BR /&gt;17347 196202 33&lt;BR /&gt;17398 196202 33&lt;BR /&gt;17400 196202 32.9167&lt;BR /&gt;17435 196202 32.9167&lt;BR /&gt;17443 196202 32.9167&lt;BR /&gt;17451 196202 32.9167&lt;BR /&gt;17478 196202 32.9167&lt;BR /&gt;17515 196202 32.8333&lt;BR /&gt;17523 196202 32.8333&lt;BR /&gt;17558 196202 32.75&lt;BR /&gt;17566 196202 32.75&lt;BR /&gt;17582 196202 32.75&lt;BR /&gt;17590 196202 32.75&lt;BR /&gt;17646 196202 32.75&lt;BR /&gt;17654 196202 32.75&lt;BR /&gt;17830 196202 32.75&lt;BR /&gt;17670 196202 32.6667&lt;BR /&gt;17689 196202 32.6667&lt;BR /&gt;17718 196202 32.6667&lt;BR /&gt;17726 196202 32.6667&lt;BR /&gt;17734 196202 32.6667&lt;BR /&gt;17865 196202 32.5833&lt;BR /&gt;17881 196202 32.5833&lt;BR /&gt;17910 196202 32.5833&lt;BR /&gt;17929 196202 32.5833&lt;BR /&gt;17945 196202 32.5&lt;BR /&gt;17953 196202 32.5&lt;BR /&gt;17961 196202 32.5&lt;BR /&gt;18016 196202 32.5&lt;BR /&gt;18032 196202 32.5&lt;BR /&gt;18040 196202 32.5&lt;BR /&gt;18067 196202 32.5&lt;BR /&gt;18075 196202 32.4167&lt;BR /&gt;18091 196202 32.4167&lt;BR /&gt;18112 196202 32.4167&lt;BR /&gt;18147 196202 32.4167&lt;BR /&gt;;run;&lt;BR /&gt;proc univariate data=HAVE noprint;&lt;BR /&gt;var age;&lt;BR /&gt;by date;&lt;BR /&gt;output out=WANT pctlpts = 10 20 30 40 50 60 70 80 90 pctlpre=GR;&lt;BR /&gt;run;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 03:12:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-univariate-to-calculate-the-percentile-of-data-where/m-p/293922#M61279</guid>
      <dc:creator>MAC1430</dc:creator>
      <dc:date>2016-08-25T03:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc univariate to calculate the percentile of data where several observations have one value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-univariate-to-calculate-the-percentile-of-data-where/m-p/293926#M61283</link>
      <description>&lt;PRE&gt;
Then remove those duplicated values:




proc sort data=have out=want nodupkey;
 by date age;
run;
proc univariate data=want noprint;
var age;
by date;
output out=WANT pctlpts = 10 20 30 40 50 60 70 80 90 pctlpre=GR;
run;

&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Aug 2016 04:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-univariate-to-calculate-the-percentile-of-data-where/m-p/293926#M61283</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-25T04:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc univariate to calculate the percentile of data where several observations have one value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-univariate-to-calculate-the-percentile-of-data-where/m-p/293927#M61284</link>
      <description>I think again. You should be careful ,If you do that, you gonna violate the definition of percentile , is that you really want ?</description>
      <pubDate>Thu, 25 Aug 2016 04:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-univariate-to-calculate-the-percentile-of-data-where/m-p/293927#M61284</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-25T04:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc univariate to calculate the percentile of data where several observations have one value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-univariate-to-calculate-the-percentile-of-data-where/m-p/293930#M61286</link>
      <description>&lt;P&gt;Thanks a lot ksharp, its really helpful. I am using it just as a cutoff point, but will look into data again. Have a good day &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 04:38:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-univariate-to-calculate-the-percentile-of-data-where/m-p/293930#M61286</guid>
      <dc:creator>MAC1430</dc:creator>
      <dc:date>2016-08-25T04:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc univariate to calculate the percentile of data where several observations have one value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-univariate-to-calculate-the-percentile-of-data-where/m-p/293939#M61291</link>
      <description>&lt;P&gt;Look at proc rank instead and how it deals with ties.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As KSharp mentioned these are not percentiles so be careful when referencing your analysis to not refer to them as such.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 05:47:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-univariate-to-calculate-the-percentile-of-data-where/m-p/293939#M61291</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-25T05:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc univariate to calculate the percentile of data where several observations have one value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-univariate-to-calculate-the-percentile-of-data-where/m-p/293945#M61295</link>
      <description>&lt;P&gt;Thanks Reeza, I guess proc rank will not work for me because I need cutoff points. The beginning date of many firms is same; therefore a large number of firms have the same age. This results into few top percentiles ending up having same age.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 06:25:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-univariate-to-calculate-the-percentile-of-data-where/m-p/293945#M61295</guid>
      <dc:creator>MAC1430</dc:creator>
      <dc:date>2016-08-25T06:25:13Z</dc:date>
    </item>
  </channel>
</rss>

