<?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: Determine top five winners in a series of races in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122812#M33748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;Steve Denham wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Now, what sort of analysis would yield this?&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, Reeza's ranking would yield that. With her total ranks method, the always-second runner would score 100*2 = 200 whereas no other runner would score lower than 4+96*3=292.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Apr 2013 01:40:45 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2013-04-30T01:40:45Z</dc:date>
    <item>
      <title>Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122799#M33735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 12pt; background-color: #fefefe; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;SPAN style="font-size: 13.0pt; font-family: 'Georgia','serif'; color: #111111;"&gt;Suppose we have 100 runners. And they run 100 races. All we are given is the order that the racers come in, 1 through 100.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12pt; background-color: #fefefe;"&gt;&lt;SPAN style="font-size: 13.0pt; font-family: 'Georgia','serif'; color: #111111;"&gt;At the end of the race series what would be the fairest way to determine the top five winners?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12pt; background-color: #fefefe;"&gt;&lt;SPAN style="font-size: 13.0pt; font-family: 'Georgia','serif'; color: #111111;"&gt;What SAS procedure might one use to arrive at the solution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12pt; background-color: #fefefe;"&gt;&lt;SPAN style="font-size: 13.0pt; font-family: 'Georgia','serif'; color: #111111;"&gt;We have 100 lists, of results. All lists numbered 1 to 100. A different ordering of names on each list, depending on the place they finish each race.&amp;nbsp; We concatenate horizontally and come up with one large spreadsheet.&amp;nbsp; Here would be a small sample of the spreadsheet:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12pt; background-color: #fefefe;"&gt;&lt;SPAN style="font-size: 13.0pt; font-family: 'Georgia','serif'; color: #111111;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Order Finished&lt;/TD&gt;&lt;TD&gt;Race 1&lt;/TD&gt;&lt;TD&gt;Race 2&lt;/TD&gt;&lt;TD&gt;Race 3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-bottom: 12pt; background-color: #fefefe;"&gt;&lt;SPAN style="font-size: 13.0pt; font-family: 'Georgia','serif'; color: #111111;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12pt; background-color: #fefefe;"&gt;&lt;SPAN style="font-size: 13.0pt; font-family: 'Georgia','serif'; color: #111111;"&gt;The whole spreadsheet is 100 x 100.&amp;nbsp; Let's assume that all runners run in all races.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12pt; background-color: #fefefe;"&gt;&lt;SPAN style="font-size: 13.0pt; font-family: 'Georgia','serif'; color: #111111;"&gt;Any help and insights greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12pt; background-color: #fefefe;"&gt;&lt;SPAN style="font-size: 13.0pt; font-family: 'Georgia','serif'; color: #111111;"&gt;Nicholas Kormanik&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 22:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122799#M33735</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2013-04-26T22:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122800#M33736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add rank by person over all races, persons with the 5 lowest rank are the top 5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; input;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;input&lt;/SPAN&gt; rank race1 $ race2 $&amp;nbsp; race3 $;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;cards&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;1 D A D&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;2 A D B&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;3 C B A&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;4 B C C&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;transpose&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;=input &lt;SPAN style="color: #0433ff;"&gt;out&lt;/SPAN&gt;=data1 ;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;by&lt;/SPAN&gt; rank;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;var&lt;/SPAN&gt; race1 race2 race3;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;means&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;data&lt;SPAN style="color: #000000;"&gt;=data1 &lt;/SPAN&gt;sum&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;noprint&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;ways&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;class&lt;/SPAN&gt; col1;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;var&lt;/SPAN&gt; rank;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;output&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;out&lt;/SPAN&gt;=summary1 &lt;SPAN style="color: #0433ff;"&gt;sum&lt;/SPAN&gt;(rank)=total;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;sort&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;=summary1;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;by&lt;/SPAN&gt; total ;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Apr 2013 01:09:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122800#M33736</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-04-27T01:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122801#M33737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza, expertly done.&amp;nbsp; Thank you so very much.&amp;nbsp; I'll leave the question unanswered until tomorrow night in case anyone else has something more to add.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now, though, you're the champ!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Apr 2013 07:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122801#M33737</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2013-04-27T07:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122802#M33738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest principal component analysis . make the data like these and get the final score for every competitor based on the first two principal components.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; race1&amp;nbsp; race2&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (the score of winning the champion has highest score)&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Apr 2013 09:21:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122802#M33738</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2013-04-27T09:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122803#M33739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ksharp, why PCA as opposed to what Reeza has done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please write the complete code for the simple example above so one can compare?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reeza's code seems to work flawlessly (copy and paste right into SAS).&amp;nbsp; It would be interesting to see if PCA comes up with a different result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Apr 2013 14:38:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122803#M33739</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2013-04-27T14:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122804#M33740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh. Sorry . That doesn't matter whether the champion has highest score or lowest score. only if they has the same directory.&lt;/P&gt;&lt;P&gt;I used multi-variable analysis, not like Reeza , Principal Component Analysis will use the principal component of correlation matrix to explain the entire dataset data .&lt;/P&gt;&lt;P&gt;Or I want hear the opinion from Dr &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="1066" data-externalid="" data-presence="null" data-userid="455729" data-username="SteveDenham" href="https://communities.sas.com/people/SteveDenham" id="jive-45572967562686557599803"&gt;SteveDenham&lt;/A&gt;&amp;nbsp;&amp;nbsp; who is a statistical expert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Apr 2013 15:10:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122804#M33740</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2013-04-27T15:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122805#M33741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another scoring option is to look at who finished first the most often and to declare that runner the winner. If there is a tie, look among the ties who finished second the most often, and so on. This ranking is not trivial to compute but I would rely on the absence of a documented maximum on the number of sorting (BY) variables in &lt;STRONG&gt;proc sort&lt;/STRONG&gt; to do the job, as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;data input;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;input rank (race1-race3) ($) ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;cards;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;1 D A D&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;2 A D B&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;3 C B A&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;4 B C C&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;data list;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;set input;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;array race race:;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;do _n_ = 1 to dim(race);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name = race{_n_};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;drop race:;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;proc freq data=list noprint;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;table name*rank / sparse out=scores(drop=percent);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;proc transpose data=scores out=scoreTable(drop=_:) prefix=r_;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;var count;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;by name;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;id rank;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;proc sort data=scoreTable; key r_: / descending; run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;proc print data=scoreTable(obs=5) obs="Final rank"; run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Apr 2013 03:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122805#M33741</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-04-28T03:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122806#M33742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to see you back, PGStats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the significance of "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;not trivial to compute&lt;/SPAN&gt;"?&amp;nbsp; Does that mean this will work for small data sets, but not large ones?&amp;nbsp; (Worked just fine, by the way -- copied and pasted directly into SAS.&amp;nbsp; Same result as Reeza's way.)&amp;nbsp; Seems the key improvement would be in solving the issue of ties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, if any runner misses one race does that mean he's screwed for the series?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a view on the PCA approach Ksharp mentioned?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Apr 2013 06:22:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122806#M33742</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2013-04-28T06:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122807#M33743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza 's method take every race as a single thing separately. It don't care the relations between races .&amp;nbsp; E.X. someone who wins 50-meter will be more possible winning 100-meter. Multi-variable analysis take these data as a whole data ,use one or two principle componet to present this Matrix , and take care of this relationship between races.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Apr 2013 09:50:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122807#M33743</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2013-04-28T09:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122808#M33744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;A __default_attr="807506" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://communities.sas.com/"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As being hinted by above multiple answers, especially the one from PG's vs. others, at current stage, your problem is more of the methodology question than a SAS one. For example, there are many different ranking (rating) system in the world of sport. In the real world, Racers are ranked by their absolute scores (Usain Bolt: 9.58 sec) instead of relative ones, which makes more sense if the measurements are controlled well. Giving the relative scores you have, you are looking at something similar to the ranking systems such as Tennis or Golf. Again, in the real world, the weight of scores barely spreads evenly (eg. PG suggested), take Golf for example, in a major tournament, if the Champion gets 1000, the quarter-final only gets 250.&amp;nbsp;&amp;nbsp;&amp;nbsp; That being said, it is your call to come up whatever ranking system you think is reasonable for your problem, and SAS will surely take care of the rest mechanical part of job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Apr 2013 13:45:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122808#M33744</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-04-28T13:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122809#M33745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is an interesting problem.&amp;nbsp; Suppose you have an entrant who never wins a race, yet finishes second in all one hundred races, while there are never more than three or four races won by any other individual.&amp;nbsp; If I were ranking the runners, I would certainly rank the first one highest.&amp;nbsp; Now, what sort of analysis would yield this?&amp;nbsp; This is an example of &lt;A __default_attr="645292" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;'s principal components analysis.&amp;nbsp; That method extracts the vectors that explain the greatest variation, in order.&amp;nbsp; I would then pick the scores on the first component's loadings to get my rankings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But since the variable is ordinal, rather than continuous, and there may be ties, I would explore PROC PRINQUAL, and in particular, look at Example 74.2 Principal Components of Basketball Rankings in the PRINQUAL documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 13:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122809#M33745</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-04-29T13:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122810#M33746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dr &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="455729" data-objecttype="3" href="https://communities.sas.com/people/SteveDenham"&gt;SteveDenham&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am glad to hear your explanation for this question and know a new proc&amp;nbsp;&amp;nbsp; to process Principal Component analysis.&lt;/P&gt;&lt;P&gt;I hope I have some time to learn statistical methods which I really am amazed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best.&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 14:01:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122810#M33746</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2013-04-29T14:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122811#M33747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much for the lead.&amp;nbsp; Tonight I'll be reading up on PROC PRINQUAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what's needed here is to come up with the SAS code using PROC PRINQUAL to solve the initial problem.&amp;nbsp; I'm sure the same result will be had for this small test.&amp;nbsp; Will be very interesting, though, to see how it works with the larger data set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 00:57:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122811#M33747</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2013-04-30T00:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122812#M33748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;Steve Denham wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Now, what sort of analysis would yield this?&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, Reeza's ranking would yield that. With her total ranks method, the always-second runner would score 100*2 = 200 whereas no other runner would score lower than 4+96*3=292.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 01:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122812#M33748</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-04-30T01:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122813#M33749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my experience, the first principal component when dealing with sufficiently regular variables is often the positively weighted sum of all variables, i.e. something similar to Reeza's ranking method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 01:47:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122813#M33749</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-04-30T01:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122814#M33750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that you can get a large family of rankings in the following way. If you define&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="eq1.jpg" class="jive-image" src="https://communities.sas.com/legacyfs/online/3491_eq1.jpg" /&gt;&lt;/P&gt;&lt;P&gt;where Rij is the rank of runner i in race j and a monotone increasing function f then&lt;/P&gt;&lt;P&gt;&lt;IMG alt="eq2.jpg" class="jive-image" src="https://communities.sas.com/legacyfs/online/3492_eq2.jpg" /&gt;&lt;/P&gt;&lt;P&gt;will be a &lt;EM&gt;valid&lt;/EM&gt; ranking. Expressed that way, Reeza's method is based on&lt;/P&gt;&lt;P&gt;&lt;IMG alt="eq3.jpg" class="jive-image" src="https://communities.sas.com/legacyfs/online/3493_eq3.jpg" /&gt;&lt;/P&gt;&lt;P&gt;and mine on&lt;/P&gt;&lt;P&gt;PG&lt;IMG alt="eq4.jpg" class="jive-image" src="https://communities.sas.com/legacyfs/online/3494_eq4.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 02:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122814#M33750</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-04-30T02:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122815#M33751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="455729" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://communities.sas.com/"&gt;&lt;/A&gt;&amp;nbsp; We still need the code for the original small test in the Proc PRINQUAL manner, to compare results with the other ways suggested.&amp;nbsp; I read the Basketball example, and it appears to be very similar.&amp;nbsp; The original data set would need to be transformed, though.&amp;nbsp; Please include that as well in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The approaches suggested by &lt;A __default_attr="255172" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://communities.sas.com/"&gt;&lt;/A&gt; and by &lt;A __default_attr="2746" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://communities.sas.com/"&gt;&lt;/A&gt; yielded the same results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to &lt;A __default_attr="645292" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://communities.sas.com/"&gt;&lt;/A&gt; for suggesting PCA to begin with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="5068" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://communities.sas.com/"&gt;&lt;/A&gt;&amp;nbsp; Yes there are many different methodologies for determining rankings in sports.&amp;nbsp; In the present circumstance, however, we are given this particular set of results, and must try to come up with the fairest conclusions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Particular concerns include:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Ties.&amp;nbsp; In a tie between S (Strong) and W (Weak), if S beat better opponents than W, seems the tie should be broken in the favor of S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Individuals missing some races, though in the races he/she participated in did very well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 07:28:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122815#M33751</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2013-04-30T07:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122816#M33752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PRINQUAL is not going to behave well at all with a 4x4 sample matrix, due to the lack of sample size, so I'm going to pass on writing code for something that needs more data to be valid.&amp;nbsp; However, for the 100x100 situation, I would use the code for the basketball example, including the datasteps prior to calling the PROC.&amp;nbsp; These address ties and missing values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 11:08:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122816#M33752</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-04-30T11:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122817#M33753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a transformed data set (thanks &lt;A __default_attr="2746" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://communities.sas.com/"&gt;&lt;/A&gt;), slightly expanded to include an additional runner, and some missing data (those runners missed a race).&amp;nbsp; This is in line with the data format in the very similar example mentioned above by &lt;A __default_attr="455729" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://communities.sas.com/" modifiedtitle="true" title="SteveDenham"&gt;&lt;/A&gt;, Example 74.2 Principal Components of Basketball Rankings, &lt;A class="jive-link-external-small" href="http://support.sas.com/documentation/cdl/en/statug/65328/HTML/default/viewer.htm#statug_prinqual_examples02.htm" style="font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;SAS/STAT(R) 12.1 User's Guide&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;TBODY style="font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;Runner&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;Order_1&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;Order_2&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;Order_3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;A&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;2&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;*&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;B&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;5&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;4&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;C&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;4&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;5&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;D&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;2&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;E&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;3&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;*&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The Basketball example is quite complicated with parts I'm not familiar with.&amp;nbsp; If one of you wants to take a crack at &lt;STRONG&gt;translating&lt;/STRONG&gt; that example to fit the present one, that would be fantastic.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;At least the data is now in the required format, a substantial step forward.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I'll continue working on it as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 07:08:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122817#M33753</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2013-05-01T07:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Determine top five winners in a series of races</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122818#M33754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the stripped down version of the example mentioned above.&amp;nbsp; What's needed is to translate it for the data set we have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=nicholas.bballm;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; output out=nicholas.maxrank&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max=mcsn mdurs mdurh mwas musa mspom mins mupi map mspoi;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data nicholas.bball;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set nicholas.bballm;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if _n_=1 then set nicholas.maxrank;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; array services[10] CSN--SportsIllustrated;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; array maxranks[10] mcsn--mspoi;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; keep School CSN--SportsIllustrated;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; do i=1 to 10;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if services&lt;I&gt;=. then services&lt;I&gt;=maxranks&lt;I&gt;+1;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc prinqual data=nicholas.bball out=nicholas.tbball scores n=1 tstandard=z&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; plots=transformations;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; transform untie(CSN -- SportsIllustrated);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; id School;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc factor nfactors=1 plots=scree;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ods select factorpattern screeplot;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var TCSN -- TSportsIllustrated;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; by Prin1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var School Prin1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 06:56:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determine-top-five-winners-in-a-series-of-races/m-p/122818#M33754</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2013-05-02T06:56:14Z</dc:date>
    </item>
  </channel>
</rss>

