<?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 classify each value to percentile group in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/classify-each-value-to-percentile-group/m-p/948278#M371064</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Foe each customer I have a data set with wealth value and also values of percentiles that were calculated from all data.&lt;/P&gt;
&lt;P&gt;My purpose- For each customer find to which percentile the value wealth belong.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;wealth 300 belong to P90&lt;/P&gt;
&lt;P&gt;wealth 50 belong to P20&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;What is the way to classify each value to percentile group?&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;
Data have;
input CustID wealth P5 P10 P20 P30 P40 P50 P60 P70 P80 P90 P95 ;
cards;
1 300 20 40 70 90 120 150 200 230 280 400 500  
2 50 20 40 70 90 120 150 200 230 280 400 500
;
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, 20 Oct 2024 12:24:42 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2024-10-20T12:24:42Z</dc:date>
    <item>
      <title>classify each value to percentile group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/classify-each-value-to-percentile-group/m-p/948278#M371064</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Foe each customer I have a data set with wealth value and also values of percentiles that were calculated from all data.&lt;/P&gt;
&lt;P&gt;My purpose- For each customer find to which percentile the value wealth belong.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;wealth 300 belong to P90&lt;/P&gt;
&lt;P&gt;wealth 50 belong to P20&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;What is the way to classify each value to percentile group?&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;
Data have;
input CustID wealth P5 P10 P20 P30 P40 P50 P60 P70 P80 P90 P95 ;
cards;
1 300 20 40 70 90 120 150 200 230 280 400 500  
2 50 20 40 70 90 120 150 200 230 280 400 500
;
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, 20 Oct 2024 12:24:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/classify-each-value-to-percentile-group/m-p/948278#M371064</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-10-20T12:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: classify each value to percentile group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/classify-each-value-to-percentile-group/m-p/948288#M371069</link>
      <description>&lt;P&gt;Your P: variables look redundant to me. Do they have the same values over all observations?&lt;/P&gt;</description>
      <pubDate>Sun, 20 Oct 2024 16:02:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/classify-each-value-to-percentile-group/m-p/948288#M371069</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-10-20T16:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: classify each value to percentile group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/classify-each-value-to-percentile-group/m-p/948291#M371070</link>
      <description>&lt;P&gt;Of those P variables are to be the same for every value of "wealth" then create a format to display the desired values, or even the text "PXX".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RULES not EXAMPLES.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you have given us means we cannot have a good chance of what to do with a value of 113.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plus, you may want to look closely at the definition of percentiles. Looking at those values I would have a hard time agreeing that 300 was in the 90th percentile, 80th perhaps but not 90th.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Oct 2024 16:41:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/classify-each-value-to-percentile-group/m-p/948291#M371070</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-10-20T16:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: classify each value to percentile group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/classify-each-value-to-percentile-group/m-p/948300#M371074</link>
      <description>Why not use the way(proc format) proposed by Paige ? Like:&lt;BR /&gt;&lt;BR /&gt;proc format;&lt;BR /&gt;value fmt(default=8)&lt;BR /&gt;low-20='P5   '&lt;BR /&gt;20&amp;lt;-40='P10 '&lt;BR /&gt;......&lt;BR /&gt;400&amp;lt;-500='P95 '&lt;BR /&gt;500&amp;lt;-high='P100'&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;And using PUT() function:&lt;BR /&gt;group=put(wealth ,fmt.);</description>
      <pubDate>Mon, 21 Oct 2024 01:03:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/classify-each-value-to-percentile-group/m-p/948300#M371074</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-10-21T01:03:41Z</dc:date>
    </item>
  </channel>
</rss>

