<?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: percentiles -not get all of them in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/793367#M254280</link>
    <description>&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Percentiles of&amp;nbsp; column "&lt;SPAN&gt;predicted"&amp;nbsp; (Column&amp;nbsp;predicted&amp;nbsp; get values between 0 and 1 and it is the probability of failure by model)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 30 Jan 2022 14:24:46 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2022-01-30T14:24:46Z</dc:date>
    <item>
      <title>percentiles -not get all of them</title>
      <link>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/793341#M254263</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I have a data set with 35000 rows.&lt;/P&gt;
&lt;P&gt;In this data set there are following columns:&lt;/P&gt;
&lt;P&gt;"Customer ID"&lt;/P&gt;
&lt;P&gt;"predicted" with value between 0 and 1 (probability of failure)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Failure" with value 1 or 0 (1 if customer fail in 12 months follow up and&amp;nbsp; 0 if not)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create a new data set with calculation of percentiles&amp;nbsp; 1 until 100&amp;nbsp; ( 1,2,3,4,5,6,7,8,.......and so on till 100)&lt;/P&gt;
&lt;P&gt;The problem:&lt;/P&gt;
&lt;P&gt;In the new column "&lt;CODE class=" language-sas"&gt;Percentile_"&amp;nbsp;&amp;nbsp;there&amp;nbsp;is&amp;nbsp;jumping&amp;nbsp;in&amp;nbsp;the&amp;nbsp;values&amp;nbsp;and&amp;nbsp;I&amp;nbsp;get&amp;nbsp;only&amp;nbsp;the&amp;nbsp;following&amp;nbsp;percentiles&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;0&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt;5&lt;BR /&gt;6&lt;BR /&gt;7&lt;BR /&gt;8&lt;BR /&gt;9&lt;BR /&gt;11&lt;BR /&gt;13&lt;BR /&gt;14&lt;BR /&gt;15&lt;BR /&gt;16&lt;BR /&gt;27&lt;BR /&gt;38&lt;BR /&gt;40&lt;BR /&gt;42&lt;BR /&gt;43&lt;BR /&gt;44&lt;BR /&gt;45&lt;BR /&gt;46&lt;BR /&gt;48&lt;BR /&gt;51&lt;BR /&gt;52&lt;BR /&gt;53&lt;BR /&gt;54&lt;BR /&gt;55&lt;BR /&gt;57&lt;BR /&gt;59&lt;BR /&gt;60&lt;BR /&gt;66&lt;BR /&gt;73&lt;BR /&gt;74&lt;BR /&gt;75&lt;BR /&gt;76&lt;BR /&gt;78&lt;BR /&gt;80&lt;BR /&gt;84&lt;BR /&gt;88&lt;BR /&gt;89&lt;BR /&gt;90&lt;BR /&gt;91&lt;BR /&gt;93&lt;BR /&gt;94&lt;BR /&gt;95&lt;BR /&gt;97&lt;BR /&gt;98&lt;BR /&gt;99&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc rank data=Have  groups=100 descending out=b;
var predicted;
ranks Percentile_;
run;&lt;BR /&gt;&lt;BR /&gt;proc summary data=b nway;&lt;BR /&gt;var Failure ;&lt;BR /&gt;class Percentile_;&lt;BR /&gt;output out=d(drop=_type_ rename=(_freq_=n_Percentile)) &lt;BR /&gt;sum=Bad_Percentile ;&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jan 2022 09:00:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/793341#M254263</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2022-01-30T09:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: percentiles -not get all of them</title>
      <link>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/793342#M254264</link>
      <description>&lt;P&gt;I assume you've got these "jumps" because of ties. There are different options for Proc Rank how to treat ties.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n0y7jshlj1odi6n1atnqzerl3uw5.htm" target="_blank" rel="noopener"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n0y7jshlj1odi6n1atnqzerl3uw5.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jan 2022 22:59:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/793342#M254264</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-01-30T22:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: percentiles -not get all of them</title>
      <link>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/793347#M254265</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;I want to create a new data set with calculation of percentiles 1 until 100 ( 1,2,3,4,5,6,7,8,.......and so on till 100)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Percentiles of what?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you understand that percentiles of 0/1 variables is a meaningless thing to compute?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jan 2022 12:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/793347#M254265</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-01-30T12:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: percentiles -not get all of them</title>
      <link>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/793352#M254270</link>
      <description>As Patrick said try option ties=dense&lt;BR /&gt;&lt;BR /&gt;proc rank data=Have  groups=100 descending out=b  TIES=DENSE ;&lt;BR /&gt;&lt;BR /&gt;Or you could use PROC UNIVARIATE + PCTLPTS + PCTLPRE&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 30 Jan 2022 12:23:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/793352#M254270</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-01-30T12:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: percentiles -not get all of them</title>
      <link>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/793367#M254280</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Percentiles of&amp;nbsp; column "&lt;SPAN&gt;predicted"&amp;nbsp; (Column&amp;nbsp;predicted&amp;nbsp; get values between 0 and 1 and it is the probability of failure by model)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jan 2022 14:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/793367#M254280</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2022-01-30T14:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: percentiles -not get all of them</title>
      <link>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/799282#M314280</link>
      <description>&lt;P&gt;TIES=DENSE is not working well.&lt;BR /&gt;It classified to groups in wrong way.&lt;BR /&gt;May you please show the code of using PROC UNIVARIATE + PCTLPTS + PCTLPRE?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 11:16:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/799282#M314280</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2022-03-01T11:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: percentiles -not get all of them</title>
      <link>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/799284#M314282</link>
      <description>&lt;P&gt;Percentile of PD (probability of default)&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 11:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/799284#M314282</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2022-03-01T11:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: percentiles -not get all of them</title>
      <link>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/799287#M314284</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;TIES=DENSE is not working well.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show us what is wrong. Don't say something is wrong and provide no explanation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;It classified to groups in wrong way.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think it classified the group in the correct way (it did what it was supposed to do), but that may not be what you want. And you need to explain what you want.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 11:19:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/799287#M314284</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-03-01T11:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: percentiles -not get all of them</title>
      <link>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/799288#M314285</link>
      <description>&lt;P&gt;Sorry,I didnt see solution to my problem in this link&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 11:26:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/percentiles-not-get-all-of-them/m-p/799288#M314285</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2022-03-01T11:26:10Z</dc:date>
    </item>
  </channel>
</rss>

