<?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 Evaluate the standing of an aptitude test score among all scores for the test in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Evaluate-the-standing-of-an-aptitude-test-score-among-all-scores/m-p/175262#M1729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times; color: #000000;"&gt;Hello, all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times; color: #000000;"&gt;I'm trying to find in SAS/IML function that :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times; color: #000000;"&gt;Returns the rank of a value in a data set as a percentage of the data set,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times; color: #000000;"&gt;This function can be used to evaluate the relative standing of a value within a data set. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times; color: #000000;"&gt;For example, you can use the function&amp;nbsp; to evaluate the standing of an aptitude test score among all scores for the test.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times; color: #000000;"&gt;In Excel there is the PERCENTRANK that do that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times; color: #000000;"&gt;The Rank function just creates a new matrix containing elements that are the ranks of the corresponding elements of matrix. So I cant evaluate new value.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times; color: #000000;"&gt;Thanks!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: 'times new roman', times;"&gt;Orit&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Dec 2013 07:48:52 GMT</pubDate>
    <dc:creator>oriti</dc:creator>
    <dc:date>2013-12-17T07:48:52Z</dc:date>
    <item>
      <title>Evaluate the standing of an aptitude test score among all scores for the test</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Evaluate-the-standing-of-an-aptitude-test-score-among-all-scores/m-p/175262#M1729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times; color: #000000;"&gt;Hello, all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times; color: #000000;"&gt;I'm trying to find in SAS/IML function that :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times; color: #000000;"&gt;Returns the rank of a value in a data set as a percentage of the data set,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times; color: #000000;"&gt;This function can be used to evaluate the relative standing of a value within a data set. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times; color: #000000;"&gt;For example, you can use the function&amp;nbsp; to evaluate the standing of an aptitude test score among all scores for the test.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times; color: #000000;"&gt;In Excel there is the PERCENTRANK that do that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times; color: #000000;"&gt;The Rank function just creates a new matrix containing elements that are the ranks of the corresponding elements of matrix. So I cant evaluate new value.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times; color: #000000;"&gt;Thanks!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: 'times new roman', times;"&gt;Orit&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 07:48:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Evaluate-the-standing-of-an-aptitude-test-score-among-all-scores/m-p/175262#M1729</guid>
      <dc:creator>oriti</dc:creator>
      <dc:date>2013-12-17T07:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate the standing of an aptitude test score among all scores for the test</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Evaluate-the-standing-of-an-aptitude-test-score-among-all-scores/m-p/175263#M1730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you provide a small example of data and the results that you consider correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 11:08:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Evaluate-the-standing-of-an-aptitude-test-score-among-all-scores/m-p/175263#M1730</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-12-17T11:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate the standing of an aptitude test score among all scores for the test</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Evaluate-the-standing-of-an-aptitude-test-score-among-all-scores/m-p/175264#M1731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it have to be in IML? Proc Rank might do what you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 19:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Evaluate-the-standing-of-an-aptitude-test-score-among-all-scores/m-p/175264#M1731</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-12-17T19:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate the standing of an aptitude test score among all scores for the test</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Evaluate-the-standing-of-an-aptitude-test-score-among-all-scores/m-p/175265#M1732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply. It will be easier to write a code if IML has a function that do that.&lt;/P&gt;&lt;P&gt;I need an output of vector with results.&lt;/P&gt;&lt;P&gt;I need to evaluate the 'xvalues' from the simulation result&lt;/P&gt;&lt;P&gt;Enclosed two results (from 'PERCENTRANK' in Excel)&lt;/P&gt;&lt;P&gt;I would really appreciate if there is an efficient way to do that in SAS.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Orit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="183"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="19" width="61"&gt;xvalue&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;-17.871&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.38566&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 183px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="19" width="61"&gt;&lt;/TD&gt;&lt;TD class="xl65" width="61"&gt;b0&lt;/TD&gt;&lt;TD class="xl65" width="61"&gt;b1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;PERCENTRANK from excel&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;0.712&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;0.67&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="183"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;&lt;/TD&gt;&lt;TD class="xl68" width="61"&gt;b0&lt;/TD&gt;&lt;TD class="xl68" width="61"&gt;b1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim1&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-19.466&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.34684&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim2&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-20.935&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.28048&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim3&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-23.591&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.23789&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim4&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-17.03&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.41215&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim5&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-19.455&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.27507&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim6&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-19.112&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.37149&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim7&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-21.979&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.24889&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim8&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-17.066&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.39767&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim9&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-22.543&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.22619&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim10&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-16.228&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.41261&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim11&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-22.78&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.28657&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" width="61"&gt;Sim12&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-21.073&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.36045&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim13&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-23.883&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.18773&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim14&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-18.553&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.37433&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim15&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-15.963&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.38656&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim16&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-18.974&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.32481&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim17&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-18.373&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.35586&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim18&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-20.066&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.34573&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim19&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-16.091&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.40736&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim20&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-18.951&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.3738&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim21&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-16.918&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.39794&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim22&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-17.819&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.3412&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim23&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-20.146&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.3637&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim24&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-17.677&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.31051&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim25&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-20.202&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.33014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim26&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-17.961&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.40499&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim27&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-17.994&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.40927&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim28&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-20.804&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.28163&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim29&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-18.91&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.26595&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim30&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-19.135&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.30117&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim31&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-19.419&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.37921&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim32&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-22.366&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.28681&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim33&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-15.681&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.4264&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim34&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-18.037&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.38472&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim35&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-16.07&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.4479&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim36&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-17.226&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.38755&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim37&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-18.129&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.41324&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim38&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-19.263&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.35744&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim39&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-20.053&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.30839&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim40&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-19.032&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.39052&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim41&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-20.05&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.30791&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim42&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-21.228&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.23211&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim43&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-17.122&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.40638&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim44&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-17.117&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.40645&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim45&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-18.855&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.31151&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim46&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-18.276&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.33163&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim47&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-14.683&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.47646&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim48&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-19.888&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.34165&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="61"&gt;Sim49&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;-18.283&lt;/TD&gt;&lt;TD align="right" class="xl65" width="61"&gt;0.36015&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 20:23:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Evaluate-the-standing-of-an-aptitude-test-score-among-all-scores/m-p/175265#M1732</guid>
      <dc:creator>oriti</dc:creator>
      <dc:date>2013-12-17T20:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate the standing of an aptitude test score among all scores for the test</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Evaluate-the-standing-of-an-aptitude-test-score-among-all-scores/m-p/175266#M1733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I create a preliminary attempt, but I don't match your results for your simulation data. Still, this might help you get started in the right direction. I have to run to a meeting, so I didn't have time to comment the code.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc iml;&lt;BR /&gt;start PercentRankInList(x, target);&amp;nbsp; /* pct rank when target value is in list */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; NLower = ncol(loc(x&amp;lt;target));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; NUpper = ncol(loc(x&amp;gt;target));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; return( NLower/(NLower+NUpper));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; return( pr );&lt;BR /&gt;finish;&lt;/P&gt;&lt;P&gt;start PercentRank(x, target); /* pct rank whether or not target value is in list */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; idx = loc(x=target);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if ncol(idx)&amp;gt;0 then&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* target value is in list */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return(PercentRankInList(x, target));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; idxLower = loc(x&amp;lt;target);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; idxUpper = loc(x&amp;gt;target);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; x0 = max(x[idxLower]);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; pr0 = PercentRankInList(x, x0);&amp;nbsp; /* x0 is in list */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; x1 = min(x[idxUpper]);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; pr1 = PercentRankInList(x, x1); /* x1 is in list */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; f = (target-x0)/(x1-x0);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* target is fraction f between x0 and x1 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; return( pr0 + f*(pr1-pr0) );&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* interpolate */&lt;BR /&gt;finish;&lt;/P&gt;&lt;P&gt;/* test on examples at&lt;BR /&gt;&lt;A href="http://office.microsoft.com/en-us/excel-help/percentrank-HP005209212.aspx"&gt;http://office.microsoft.com/en-us/excel-help/percentrank-HP005209212.aspx&lt;/A&gt; &lt;BR /&gt;*/&lt;BR /&gt;/*&lt;BR /&gt;x = {13,12,11,8,4,3,2,1,1,1};&lt;BR /&gt;print (PercentRank(x, 2));&lt;BR /&gt;print (PercentRank(x, 4));&lt;BR /&gt;print (PercentRank(x, 8));&lt;BR /&gt;print (PercentRank(x, 5));&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;/* test on simulation example data */&lt;/P&gt;&lt;P&gt;use PercentRank; read all var {b0 b1}; close PercentRank; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;print (PercentRank(b0, -17.871));&lt;BR /&gt;print (PercentRank(b1, 0.38566));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 17:02:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Evaluate-the-standing-of-an-aptitude-test-score-among-all-scores/m-p/175266#M1733</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-12-18T17:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate the standing of an aptitude test score among all scores for the test</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Evaluate-the-standing-of-an-aptitude-test-score-among-all-scores/m-p/175267#M1734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rick!&lt;/P&gt;&lt;P&gt;But what would you do if the matrix of x (as in your example) is not N*1 but N*M &lt;/P&gt;&lt;P&gt;and the Target is 1*M vector (and not a scalar)&lt;/P&gt;&lt;P&gt;and I need to print a result vector (PercentRank vector) of 1*M &lt;/P&gt;&lt;P&gt;I would really appreciate your answer.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Orit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 10:33:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Evaluate-the-standing-of-an-aptitude-test-score-among-all-scores/m-p/175267#M1734</guid>
      <dc:creator>oriti</dc:creator>
      <dc:date>2013-12-19T10:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate the standing of an aptitude test score among all scores for the test</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Evaluate-the-standing-of-an-aptitude-test-score-among-all-scores/m-p/175268#M1735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd allocate a row vector to hold the results and use a DO loop over the columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 11:08:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Evaluate-the-standing-of-an-aptitude-test-score-among-all-scores/m-p/175268#M1735</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-12-19T11:08:02Z</dc:date>
    </item>
  </channel>
</rss>

