<?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 rank in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-rank/m-p/744728#M233347</link>
    <description>&lt;P&gt;Maxim 1: Read the Documentation.&lt;/P&gt;
&lt;P&gt;In particular, the TIES= option of the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/p16s2o8e4bnqrin1phywxdaxqba7.htm" target="_blank" rel="noopener"&gt;PROC RANK Statement&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 May 2021 05:00:30 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-05-31T05:00:30Z</dc:date>
    <item>
      <title>Proc rank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-rank/m-p/744720#M233341</link>
      <description>&lt;P&gt;I coded below program .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc rank data=sashelp.cars; &lt;BR /&gt;var cylinders; &lt;BR /&gt;ranks ranking; &lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but the ranking values comes as&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ranking&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;P&gt;69.5&lt;/P&gt;
&lt;P&gt;69.5&lt;/P&gt;
&lt;P&gt;and so on&lt;/P&gt;
&lt;P&gt;Please suggest what went wrong here.&lt;/P&gt;
&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 03:56:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-rank/m-p/744720#M233341</guid>
      <dc:creator>Aexor</dc:creator>
      <dc:date>2021-05-31T03:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc rank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-rank/m-p/744724#M233344</link>
      <description>&lt;P&gt;What makes you think anything is wrong?&lt;/P&gt;
&lt;P&gt;It did what you asked.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc rank data=sashelp.cars out=ranks;
  var cylinders;
  ranks ranking;
run;

proc freq data=ranks;
  tables cylinders*ranking / list missprint;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;The FREQ Procedure

                                                 Cumulative    Cumulative
Cylinders    ranking    Frequency     Percent     Frequency      Percent
-------------------------------------------------------------------------
        .          .           2         .               .          .
        3          1           1        0.23             1         0.23
        4       69.5         136       31.92           137        32.16
        5        141           7        1.64           144        33.80
        6      239.5         190       44.60           334        78.40
        8        378          87       20.42           421        98.83
       10      422.5           2        0.47           423        99.30
       12        425           3        0.70           426       100.00

                          Frequency Missing = 2

&lt;/PRE&gt;
&lt;P&gt;So the lowest non-missing value is 3 and it is rank 1.&amp;nbsp; The next lowest value is 4 and it appears 136 times. So the average ranking for those 136 observations in 69.5, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want it do do something else then tell it that by changing the options.&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 04:43:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-rank/m-p/744724#M233344</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-05-31T04:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc rank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-rank/m-p/744728#M233347</link>
      <description>&lt;P&gt;Maxim 1: Read the Documentation.&lt;/P&gt;
&lt;P&gt;In particular, the TIES= option of the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/p16s2o8e4bnqrin1phywxdaxqba7.htm" target="_blank" rel="noopener"&gt;PROC RANK Statement&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 05:00:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-rank/m-p/744728#M233347</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-05-31T05:00:30Z</dc:date>
    </item>
  </channel>
</rss>

