<?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 Rank observations based on variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Rank-observations-based-on-variable/m-p/761101#M240780</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to generate a variable to rank analysts (ANALYS) by ISIN (the firm code) based on the STDFE.&lt;/P&gt;
&lt;P&gt;For example for the first firm i.e.&amp;nbsp;GB00BJVQC708 ANALYS with code 114434 will receive 1. For the second and next analyst since they have the same STDFE then I want to assign the mid-point of the ranks they take up. This means that the ranks need not be integers. Similarly for the second firm etc. Please see attached a subsample of the two firms&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;George&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Aug 2021 09:30:58 GMT</pubDate>
    <dc:creator>georgel</dc:creator>
    <dc:date>2021-08-12T09:30:58Z</dc:date>
    <item>
      <title>Rank observations based on variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rank-observations-based-on-variable/m-p/761101#M240780</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to generate a variable to rank analysts (ANALYS) by ISIN (the firm code) based on the STDFE.&lt;/P&gt;
&lt;P&gt;For example for the first firm i.e.&amp;nbsp;GB00BJVQC708 ANALYS with code 114434 will receive 1. For the second and next analyst since they have the same STDFE then I want to assign the mid-point of the ranks they take up. This means that the ranks need not be integers. Similarly for the second firm etc. Please see attached a subsample of the two firms&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;George&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 09:30:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rank-observations-based-on-variable/m-p/761101#M240780</guid>
      <dc:creator>georgel</dc:creator>
      <dc:date>2021-08-12T09:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rank observations based on variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rank-observations-based-on-variable/m-p/761106#M240782</link>
      <description>&lt;P&gt;PROC RANK will do that by default:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc rank data=testconsitency;
ranks rank;
var stdfe;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Aug 2021 09:49:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rank-observations-based-on-variable/m-p/761106#M240782</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-08-12T09:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rank observations based on variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rank-observations-based-on-variable/m-p/761109#M240784</link>
      <description>&lt;P&gt;Many thanks Kurt for the quick solution&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just I added a line : By ISIN&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;george&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 09:58:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rank-observations-based-on-variable/m-p/761109#M240784</guid>
      <dc:creator>georgel</dc:creator>
      <dc:date>2021-08-12T09:58:24Z</dc:date>
    </item>
  </channel>
</rss>

