<?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 Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Rank/m-p/812913#M40095</link>
    <description>&lt;P&gt;I think you need to get rid of the GROUPS=10 option. That option is telling the procedure to combine values that have different ranks into a single group, which is not what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more about the GROUP= option, see&amp;nbsp;&lt;A href="https://blogs.sas.com/content/sgf/2019/07/19/how-the-rank-procedure-calculates-ranks-with-groups-and-ties/" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/sgf/2019/07/19/how-the-rank-procedure-calculates-ranks-with-groups-and-ties/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at the following example to see what the GROUPS=10 option is doing for your data:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data A;
input outband count;
do i = 1 to count;
Cnt + 1;
   output;
end;
drop i;
datalines;
1	20
2	92
3	42
4	7
5	2839
;

proc rank data=A out=rankLow ties=LOW;
   var outband;
   ranks rankLow;
run;
Title "Ranking";
proc sgplot data=rankLow;
scatter x=Cnt y=rankLow;
run;

proc rank data=A out=rankLowGroup ties=LOW GROUPS=10;
   var outband;
   ranks rankLow;
run;
Title "GROUPS=10 Option";
proc sgplot data=rankLowGroup;
scatter x=Cnt y=rankLow;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 May 2022 10:40:18 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2022-05-12T10:40:18Z</dc:date>
    <item>
      <title>Proc Rank</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Rank/m-p/812902#M40093</link>
      <description>&lt;P&gt;i have 2 variables OURBAND and SURBAND and want use the proc rank&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are the proc freq of the variables and their ranks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't understand why for the variable OURBAND the proc rank creates only 1 rank (while has 5 different values) and at the same time the SURBAND with 9 different values has 5 ranks?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 240pt;" border="0" width="320" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD colspan="5" width="425.837px" height="15px" class="xl73" style="height: 15.0pt; width: 240pt;"&gt;OURBAND&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 27.0pt;"&gt;
&lt;TD rowspan="2" width="91.0125px" height="63px" class="xl75" style="border-bottom: 1.0pt solid #B0B7BB; height: 54.6pt; border-top: none; width: 48pt;"&gt;OURBAND&lt;/TD&gt;
&lt;TD rowspan="2" width="86.6px" height="63px" class="xl77" style="border-bottom: 1.0pt solid #B0B7BB; border-top: none; width: 48pt;"&gt;Frequency&lt;/TD&gt;
&lt;TD rowspan="2" width="66.15px" height="63px" class="xl77" style="border-bottom: 1.0pt solid #B0B7BB; border-top: none; width: 48pt;"&gt;Percent&lt;/TD&gt;
&lt;TD width="91.0375px" height="36px" class="xl63" style="width: 48pt;"&gt;Cumulative&lt;/TD&gt;
&lt;TD width="91.0375px" height="36px" class="xl66" style="width: 48pt;"&gt;Cumulative&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 27.6pt;"&gt;
&lt;TD width="91.0375px" height="27px" class="xl64" style="height: 27.6pt; width: 48pt;"&gt;Frequency&lt;/TD&gt;
&lt;TD width="91.0375px" height="27px" class="xl67" style="width: 48pt;"&gt;Percent&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="91.0125px" height="15px" class="xl68" style="height: 15.0pt;"&gt;1&lt;/TD&gt;
&lt;TD width="86.6px" height="15px" class="xl65"&gt;20&lt;/TD&gt;
&lt;TD width="66.15px" height="15px" class="xl65"&gt;0.67&lt;/TD&gt;
&lt;TD width="91.0375px" height="15px" class="xl65"&gt;20&lt;/TD&gt;
&lt;TD width="91.0375px" height="15px" class="xl69"&gt;0.67&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="91.0125px" height="15px" class="xl68" style="height: 15.0pt;"&gt;2&lt;/TD&gt;
&lt;TD width="86.6px" height="15px" class="xl65"&gt;92&lt;/TD&gt;
&lt;TD width="66.15px" height="15px" class="xl65"&gt;3.07&lt;/TD&gt;
&lt;TD width="91.0375px" height="15px" class="xl65"&gt;112&lt;/TD&gt;
&lt;TD width="91.0375px" height="15px" class="xl69"&gt;3.73&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="91.0125px" height="15px" class="xl68" style="height: 15.0pt;"&gt;3&lt;/TD&gt;
&lt;TD width="86.6px" height="15px" class="xl65"&gt;42&lt;/TD&gt;
&lt;TD width="66.15px" height="15px" class="xl65"&gt;1.4&lt;/TD&gt;
&lt;TD width="91.0375px" height="15px" class="xl65"&gt;154&lt;/TD&gt;
&lt;TD width="91.0375px" height="15px" class="xl69"&gt;5.13&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="91.0125px" height="15px" class="xl68" style="height: 15.0pt;"&gt;4&lt;/TD&gt;
&lt;TD width="86.6px" height="15px" class="xl65"&gt;7&lt;/TD&gt;
&lt;TD width="66.15px" height="15px" class="xl65"&gt;0.23&lt;/TD&gt;
&lt;TD width="91.0375px" height="15px" class="xl65"&gt;161&lt;/TD&gt;
&lt;TD width="91.0375px" height="15px" class="xl69"&gt;5.37&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="91.0125px" height="15px" class="xl70" style="height: 15.0pt;"&gt;5&lt;/TD&gt;
&lt;TD width="86.6px" height="15px" class="xl71"&gt;2839&lt;/TD&gt;
&lt;TD width="66.15px" height="15px" class="xl71"&gt;94.63&lt;/TD&gt;
&lt;TD width="91.0375px" height="15px" class="xl71"&gt;3000&lt;/TD&gt;
&lt;TD width="91.0375px" height="15px" class="xl72"&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;TABLE style="border-collapse: collapse; width: 240pt;" border="0" width="320" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD colspan="5" width="320" height="20" class="xl75" style="height: 15.0pt; width: 240pt;"&gt;SURBAND&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 27.0pt;"&gt;
&lt;TD rowspan="2" width="64" height="73" class="xl77" style="border-bottom: 1.0pt solid #B0B7BB; height: 54.6pt; border-top: none; width: 48pt;"&gt;SURBAND&lt;/TD&gt;
&lt;TD rowspan="2" width="64" class="xl79" style="border-bottom: 1.0pt solid #B0B7BB; border-top: none; width: 48pt;"&gt;Frequency&lt;/TD&gt;
&lt;TD rowspan="2" width="64" class="xl79" style="border-bottom: 1.0pt solid #B0B7BB; border-top: none; width: 48pt;"&gt;Percent&lt;/TD&gt;
&lt;TD width="64" class="xl65" style="width: 48pt;"&gt;Cumulative&lt;/TD&gt;
&lt;TD width="64" class="xl68" style="width: 48pt;"&gt;Cumulative&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 27.6pt;"&gt;
&lt;TD width="64" height="37" class="xl66" style="height: 27.6pt; width: 48pt;"&gt;Frequency&lt;/TD&gt;
&lt;TD width="64" class="xl69" style="width: 48pt;"&gt;Percent&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl70" style="height: 15.0pt;"&gt;1&lt;/TD&gt;
&lt;TD class="xl67"&gt;998&lt;/TD&gt;
&lt;TD class="xl67"&gt;33.27&lt;/TD&gt;
&lt;TD class="xl67"&gt;998&lt;/TD&gt;
&lt;TD class="xl71"&gt;33.27&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl70" style="height: 15.0pt;"&gt;2&lt;/TD&gt;
&lt;TD class="xl67"&gt;13&lt;/TD&gt;
&lt;TD class="xl67"&gt;0.43&lt;/TD&gt;
&lt;TD class="xl67"&gt;1011&lt;/TD&gt;
&lt;TD class="xl71"&gt;33.7&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl70" style="height: 15.0pt;"&gt;3&lt;/TD&gt;
&lt;TD class="xl67"&gt;32&lt;/TD&gt;
&lt;TD class="xl67"&gt;1.07&lt;/TD&gt;
&lt;TD class="xl67"&gt;1043&lt;/TD&gt;
&lt;TD class="xl71"&gt;34.77&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl70" style="height: 15.0pt;"&gt;4&lt;/TD&gt;
&lt;TD class="xl67"&gt;1102&lt;/TD&gt;
&lt;TD class="xl67"&gt;36.73&lt;/TD&gt;
&lt;TD class="xl67"&gt;2145&lt;/TD&gt;
&lt;TD class="xl71"&gt;71.5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl70" style="height: 15.0pt;"&gt;5&lt;/TD&gt;
&lt;TD class="xl67"&gt;185&lt;/TD&gt;
&lt;TD class="xl67"&gt;6.17&lt;/TD&gt;
&lt;TD class="xl67"&gt;2330&lt;/TD&gt;
&lt;TD class="xl71"&gt;77.67&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl70" style="height: 15.0pt;"&gt;6&lt;/TD&gt;
&lt;TD class="xl67"&gt;248&lt;/TD&gt;
&lt;TD class="xl67"&gt;8.27&lt;/TD&gt;
&lt;TD class="xl67"&gt;2578&lt;/TD&gt;
&lt;TD class="xl71"&gt;85.93&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl70" style="height: 15.0pt;"&gt;7&lt;/TD&gt;
&lt;TD class="xl67"&gt;330&lt;/TD&gt;
&lt;TD class="xl67"&gt;11&lt;/TD&gt;
&lt;TD class="xl67"&gt;2908&lt;/TD&gt;
&lt;TD class="xl71"&gt;96.93&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl70" style="height: 15.0pt;"&gt;8&lt;/TD&gt;
&lt;TD class="xl67"&gt;37&lt;/TD&gt;
&lt;TD class="xl67"&gt;1.23&lt;/TD&gt;
&lt;TD class="xl67"&gt;2945&lt;/TD&gt;
&lt;TD class="xl71"&gt;98.17&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" class="xl72" style="height: 14.4pt;"&gt;9&lt;/TD&gt;
&lt;TD class="xl73"&gt;55&lt;/TD&gt;
&lt;TD class="xl73"&gt;1.83&lt;/TD&gt;
&lt;TD class="xl73"&gt;3000&lt;/TD&gt;
&lt;TD class="xl74"&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;TABLE style="border-collapse: collapse; width: 240pt;" border="0" width="320" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD colspan="5" width="320" height="20" class="xl72" style="height: 15.0pt; width: 240pt;"&gt;Rank for Variable OURBAND&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 27.0pt;"&gt;
&lt;TD rowspan="2" width="64" height="73" class="xl74" style="border-bottom: 1.0pt solid #B0B7BB; height: 54.6pt; border-top: none; width: 48pt;"&gt;rank1&lt;/TD&gt;
&lt;TD rowspan="2" width="64" class="xl76" style="border-bottom: 1.0pt solid #B0B7BB; border-top: none; width: 48pt;"&gt;Frequency&lt;/TD&gt;
&lt;TD rowspan="2" width="64" class="xl76" style="border-bottom: 1.0pt solid #B0B7BB; border-top: none; width: 48pt;"&gt;Percent&lt;/TD&gt;
&lt;TD width="64" class="xl65" style="width: 48pt;"&gt;Cumulative&lt;/TD&gt;
&lt;TD width="64" class="xl67" style="width: 48pt;"&gt;Cumulative&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 27.6pt;"&gt;
&lt;TD width="64" height="37" class="xl66" style="height: 27.6pt; width: 48pt;"&gt;Frequency&lt;/TD&gt;
&lt;TD width="64" class="xl68" style="width: 48pt;"&gt;Percent&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl69" style="height: 15.0pt;"&gt;0&lt;/TD&gt;
&lt;TD class="xl70"&gt;3000&lt;/TD&gt;
&lt;TD class="xl70"&gt;100&lt;/TD&gt;
&lt;TD class="xl70"&gt;3000&lt;/TD&gt;
&lt;TD class="xl71"&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;TABLE style="border-collapse: collapse; width: 240pt;" border="0" width="320" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD colspan="5" width="320" height="20" class="xl75" style="height: 15.0pt; width: 240pt;"&gt;Rank for Variable SURBAND&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 27.0pt;"&gt;
&lt;TD rowspan="2" width="64" height="73" class="xl77" style="border-bottom: 1.0pt solid #B0B7BB; height: 54.6pt; border-top: none; width: 48pt;"&gt;rank2&lt;/TD&gt;
&lt;TD rowspan="2" width="64" class="xl79" style="border-bottom: 1.0pt solid #B0B7BB; border-top: none; width: 48pt;"&gt;Frequency&lt;/TD&gt;
&lt;TD rowspan="2" width="64" class="xl79" style="border-bottom: 1.0pt solid #B0B7BB; border-top: none; width: 48pt;"&gt;Percent&lt;/TD&gt;
&lt;TD width="64" class="xl65" style="width: 48pt;"&gt;Cumulative&lt;/TD&gt;
&lt;TD width="64" class="xl68" style="width: 48pt;"&gt;Cumulative&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 27.6pt;"&gt;
&lt;TD width="64" height="37" class="xl66" style="height: 27.6pt; width: 48pt;"&gt;Frequency&lt;/TD&gt;
&lt;TD width="64" class="xl69" style="width: 48pt;"&gt;Percent&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl70" style="height: 15.0pt;"&gt;0&lt;/TD&gt;
&lt;TD class="xl67"&gt;998&lt;/TD&gt;
&lt;TD class="xl67"&gt;33.27&lt;/TD&gt;
&lt;TD class="xl67"&gt;998&lt;/TD&gt;
&lt;TD class="xl71"&gt;33.27&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl70" style="height: 15.0pt;"&gt;3&lt;/TD&gt;
&lt;TD class="xl67"&gt;1147&lt;/TD&gt;
&lt;TD class="xl67"&gt;38.23&lt;/TD&gt;
&lt;TD class="xl67"&gt;2145&lt;/TD&gt;
&lt;TD class="xl71"&gt;71.5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl70" style="height: 15.0pt;"&gt;7&lt;/TD&gt;
&lt;TD class="xl67"&gt;433&lt;/TD&gt;
&lt;TD class="xl67"&gt;14.43&lt;/TD&gt;
&lt;TD class="xl67"&gt;2578&lt;/TD&gt;
&lt;TD class="xl71"&gt;85.93&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl70" style="height: 15.0pt;"&gt;8&lt;/TD&gt;
&lt;TD class="xl67"&gt;330&lt;/TD&gt;
&lt;TD class="xl67"&gt;11&lt;/TD&gt;
&lt;TD class="xl67"&gt;2908&lt;/TD&gt;
&lt;TD class="xl71"&gt;96.93&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" class="xl72" style="height: 14.4pt;"&gt;9&lt;/TD&gt;
&lt;TD class="xl73"&gt;92&lt;/TD&gt;
&lt;TD class="xl73"&gt;3.07&lt;/TD&gt;
&lt;TD class="xl73"&gt;3000&lt;/TD&gt;
&lt;TD class="xl74"&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc rank data=test_1 group=10 out=check_rank ties=low;
var &amp;amp;varnum;
ranks rank1-rank&amp;amp;vmcnt; 
run;

proc freq data=check_rank;
table ourband surband rank1 rank2;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 May 2022 09:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Rank/m-p/812902#M40093</guid>
      <dc:creator>Toni2</dc:creator>
      <dc:date>2022-05-12T09:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Rank</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Rank/m-p/812904#M40094</link>
      <description>&lt;P&gt;I don't know why PROC RANK is doing this either. You didn't show us the original data in data set TEST_1. A useful debugging technique is for you to look at data set TEST_1 with your own eyes, and see if you can figure it out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that doesn't help, then please show us (a portion of) the original data in data set TEST_1 as SAS data step code, which you can type in yourself, or by following &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;these instructions&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/372747"&gt;@Toni2&lt;/a&gt; don't make us ask to see your data. From now on, please just show it to us without us asking, in the form requested above. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 10:00:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Rank/m-p/812904#M40094</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-05-12T10:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Rank</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Rank/m-p/812913#M40095</link>
      <description>&lt;P&gt;I think you need to get rid of the GROUPS=10 option. That option is telling the procedure to combine values that have different ranks into a single group, which is not what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more about the GROUP= option, see&amp;nbsp;&lt;A href="https://blogs.sas.com/content/sgf/2019/07/19/how-the-rank-procedure-calculates-ranks-with-groups-and-ties/" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/sgf/2019/07/19/how-the-rank-procedure-calculates-ranks-with-groups-and-ties/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at the following example to see what the GROUPS=10 option is doing for your data:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data A;
input outband count;
do i = 1 to count;
Cnt + 1;
   output;
end;
drop i;
datalines;
1	20
2	92
3	42
4	7
5	2839
;

proc rank data=A out=rankLow ties=LOW;
   var outband;
   ranks rankLow;
run;
Title "Ranking";
proc sgplot data=rankLow;
scatter x=Cnt y=rankLow;
run;

proc rank data=A out=rankLowGroup ties=LOW GROUPS=10;
   var outband;
   ranks rankLow;
run;
Title "GROUPS=10 Option";
proc sgplot data=rankLowGroup;
scatter x=Cnt y=rankLow;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 10:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Rank/m-p/812913#M40095</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-05-12T10:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Rank</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Rank/m-p/812914#M40096</link>
      <description>thanks for your response. I tried to run but get the below error (sorry i am not very experienced)&lt;BR /&gt;&lt;BR /&gt;ERROR: Invalid DO loop control information, either the INITIAL or TO expression is missing or the BY expression is missing, zero, or invalid.</description>
      <pubDate>Thu, 12 May 2022 10:47:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Rank/m-p/812914#M40096</guid>
      <dc:creator>Toni2</dc:creator>
      <dc:date>2022-05-12T10:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Rank</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Rank/m-p/812916#M40097</link>
      <description>&lt;P&gt;I assume you tried to cut and paste my example and accidentally did not copy all of the program. Try it again and be more careful.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 10:56:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Rank/m-p/812916#M40097</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-05-12T10:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Rank</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Rank/m-p/812917#M40098</link>
      <description>&lt;P&gt;thanks. I can't see anything strange in the TEST_1. TEST_1 contains RAW data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data step which i used to create the TEST_1 is the below. i have not made any calculation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data test_1;
set input.raw_data;
keep &amp;amp;listvar;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Below is a small part of the TEST_1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 96pt;" border="0" width="128" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD width="64" height="19" style="height: 14.4pt; width: 48pt;"&gt;SURBAND&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;OURBAND&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;9&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;6&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;4&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;4&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;9&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;4&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;4&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;7&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;5&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;7&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;7&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;6&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;4&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;6&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;6&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;5&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;3&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;7&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;7&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;7&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;6&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;7&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;5&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;9&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;5&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.4pt;"&gt;5&lt;/TD&gt;
&lt;TD align="right" class="xl63"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 12 May 2022 10:56:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Rank/m-p/812917#M40098</guid>
      <dc:creator>Toni2</dc:creator>
      <dc:date>2022-05-12T10:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Rank</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Rank/m-p/812918#M40099</link>
      <description>&lt;P&gt;PROC RANK is usually for continuous values. You have discrete values of OURBAND and SURBAND. It really doesn't make sense to try to rank these.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to know if there are more 5s than 1s in a variable that takes discrete values, you would use PROC FREQ and not PROC RANK.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 11:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Rank/m-p/812918#M40099</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-05-12T11:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Rank</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Rank/m-p/813037#M40100</link>
      <description>Intuitively speaking, OURBAND has only 161 observations of the 3000 that are less than 5. The 161-st value (in order) is only at the 5th percentile. If you run: proc univariate; var ourband; run; you will see that the 10-th percentile is already 5. So, all of those 161 observations will be in the first of the deciles you requested with GROUPS=10 (which is give rank value 0). Also, observations 162 through 300 (which have value 5) will also be in the first decile and since those values are tied with all of the remaining observations (also with value 5), then everything gets put in the first decile by GROUPS=10.</description>
      <pubDate>Thu, 12 May 2022 17:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Rank/m-p/813037#M40100</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-05-12T17:30:18Z</dc:date>
    </item>
  </channel>
</rss>

