<?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: scoring based on a range of values in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117178#M32324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason that you are getting missing results is that you have some rounding in values that are on the boundary.&amp;nbsp; For instance, data that are entered as 0.12 in your spreadsheet may be expressed as 0.120000000001 in SAS and the compare will fail.&amp;nbsp; You need to change one edge of the boundaries to be a "lt" and use a matching value to make sure that things are inclusive.&amp;nbsp; If your data are actually recorded to just 2 decimals, you can also put the cut-points at 3 decimals to avoid the problem.&amp;nbsp; E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case when (Type_NEW='GP') and&amp;nbsp; 0 le percent_18 le &lt;STRONG&gt;.125&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; then 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when (Type_NEW='GP') and&lt;STRONG&gt; .125&lt;/STRONG&gt; le percent_18 le &lt;STRONG&gt;.175 &lt;/STRONG&gt; then .8&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(not the changes in bold face).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaierr&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2012 17:46:45 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2012-09-10T17:46:45Z</dc:date>
    <item>
      <title>scoring based on a range of values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117177#M32323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all—&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to assign a score based on a range of values. I don’t think I’m doing this the best way. For some of the cases a missing value is returned.&amp;nbsp; I have attached a sample data set.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, how would this translate into base SAS? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt-- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table want as &lt;/P&gt;&lt;P&gt;select distinct &lt;/P&gt;&lt;P&gt;AGENCY_NAME,&lt;/P&gt;&lt;P&gt;type_new,&lt;/P&gt;&lt;P&gt;Eight_Months_Total_sum, &lt;/P&gt;&lt;P&gt;Number_Active, &lt;/P&gt;&lt;P&gt;percent_18,&lt;/P&gt;&lt;P&gt;case when (Type_NEW='GP') and&amp;nbsp; 0 le percent_18 le .12&amp;nbsp;&amp;nbsp; then 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when (Type_NEW='GP') and .13 le percent_18 le .17&amp;nbsp; then .8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when (Type_NEW='GP') and .18 le percent_18 le .24&amp;nbsp; then .6&lt;/P&gt;&lt;P&gt;&amp;nbsp; when (Type_NEW='GP') and .25 le&amp;nbsp; percent_18 le .41&amp;nbsp; then .4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when (Type_NEW='GP') and&amp;nbsp;&amp;nbsp;&amp;nbsp; percent_18 gt .40 then 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; when (Type_NEW='FTR') and&amp;nbsp; 0 le percent_18 le .11&amp;nbsp;&amp;nbsp; then&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when (Type_NEW='FTR') and .12 le percent_18 le .14&amp;nbsp; then .8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when (Type_NEW='FTR') and .15 le percent_18 le .22&amp;nbsp; then .6&lt;/P&gt;&lt;P&gt;&amp;nbsp; when (Type_NEW='FTR') and .23 le&amp;nbsp; percent_18 le .34&amp;nbsp; then .4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when (Type_NEW='FTR') and&amp;nbsp; percent_18 gt .4 then 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; end as LOS_Score&amp;nbsp; format=percent6.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; from &lt;/P&gt;&lt;P&gt;have&lt;/P&gt;&lt;P&gt;group by AGENCY_NAME,Type_NEW&amp;nbsp; ; &lt;/P&gt;&lt;P&gt;quit; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 17:13:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117177#M32323</guid>
      <dc:creator>RobertNYC</dc:creator>
      <dc:date>2012-09-10T17:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: scoring based on a range of values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117178#M32324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason that you are getting missing results is that you have some rounding in values that are on the boundary.&amp;nbsp; For instance, data that are entered as 0.12 in your spreadsheet may be expressed as 0.120000000001 in SAS and the compare will fail.&amp;nbsp; You need to change one edge of the boundaries to be a "lt" and use a matching value to make sure that things are inclusive.&amp;nbsp; If your data are actually recorded to just 2 decimals, you can also put the cut-points at 3 decimals to avoid the problem.&amp;nbsp; E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case when (Type_NEW='GP') and&amp;nbsp; 0 le percent_18 le &lt;STRONG&gt;.125&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; then 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when (Type_NEW='GP') and&lt;STRONG&gt; .125&lt;/STRONG&gt; le percent_18 le &lt;STRONG&gt;.175 &lt;/STRONG&gt; then .8&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(not the changes in bold face).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaierr&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 17:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117178#M32324</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-09-10T17:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: scoring based on a range of values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117179#M32325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you would do better with something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;data ranges;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;input type_new $ pctMin pctMax LOS_Score;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;format LOS_Score percent6.;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;datalines; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;GP 0.00 0.12 1.0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;GP 0.13 0.17 0.8&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;GP 0.18 0.24 0.6&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;GP 0.25 0.39 0.4&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;GP 0.40 1.00 0.0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;FTR 0.00 0.11 1.0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;FTR 0.12 0.14 0.8&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;FTR 0.15 0.22 0.6&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;FTR 0.23 0.39 0.4&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;FTR 0.40 1.00 0.0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;proc sql;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;create table want as &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;select&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;AGENCY_NAME,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;H.type_new,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Eight_Months_Total_sum, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Number_Active, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;percent_18,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;LOS_score&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp; from have as H inner join ranges as R &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt; on H.type_new=R.type_new and percent_18 between pctMin and pctMax&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;order by AGENCY_NAME, h.Type_NEW; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;quit; &lt;/STRONG&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>Mon, 10 Sep 2012 18:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117179#M32325</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-09-10T18:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: scoring based on a range of values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117180#M32326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to use proc format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value $ type&lt;/P&gt;&lt;P&gt; 'GP'='gp.'&lt;/P&gt;&lt;P&gt; 'FTR'='ftr.';&lt;/P&gt;&lt;P&gt;invalue&amp;nbsp;&amp;nbsp;&amp;nbsp; gp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0-.12=1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .13-.17=.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .18-.24=.6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .25-.41=.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .41&amp;lt;-high=0 ;&lt;/P&gt;&lt;P&gt;invalue&amp;nbsp;&amp;nbsp;&amp;nbsp; ftr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0-.11=1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .12-.14=.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .15-.22=.6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .23-.34=.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .4&amp;lt;-hight=0 ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt; set have;&lt;/P&gt;&lt;P&gt; LOS_Score=inputn(percent_18,put(type_new,$type.));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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>Tue, 11 Sep 2012 01:58:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117180#M32326</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-09-11T01:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: scoring based on a range of values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117181#M32327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ksharp. Quick question: is there a way to add an additional format to this. I need to have the scores in percents. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so 100%, 7%, 5%, 0%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value Utl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .97-1=1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .93-.96=.7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .90-.92=.5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; low-.89=0;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 15:53:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117181#M32327</guid>
      <dc:creator>RobertNYC</dc:creator>
      <dc:date>2012-09-11T15:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: scoring based on a range of values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117182#M32328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is easy. Just add a format statement into data step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format LOS_Score&amp;nbsp; percent. ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 01:38:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117182#M32328</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-09-12T01:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: scoring based on a range of values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117183#M32329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ksharp--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help. adding a percent does not seem to be working because im trying to modify a format&amp;nbsp; not change the format.&amp;nbsp; I've been trying to achive this by using a picture format but I can't seem to get it right. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;picture&amp;nbsp; Utl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .97-1='100%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .93-.96='70%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .90-.92='50%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; low-.89='0%';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your feedback is appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 11:37:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117183#M32329</guid>
      <dc:creator>RobertNYC</dc:creator>
      <dc:date>2012-09-12T11:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: scoring based on a range of values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117184#M32330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Formats will handle the imprecision of storing decimal fractions in binary computers for you. &lt;/P&gt;&lt;P&gt;What you need to do is use the same value for the lower limit of one range and the upper limit of the next.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Check the manual for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;value Utl&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; .97-1&amp;nbsp; ='1'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; .93-.97='.7'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; .90-.93='.5'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; low-.90='0'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 11:57:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117184#M32330</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-09-12T11:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: scoring based on a range of values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117185#M32331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK . That would be more simple .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format; &lt;/P&gt;&lt;P&gt;value $ type&lt;/P&gt;&lt;P&gt;'GP'='gp.'&lt;/P&gt;&lt;P&gt;'FTR'='ftr.';&lt;/P&gt;&lt;P&gt;value&amp;nbsp; gp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0-.12='100%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .13-.17='80%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .18-.24='60%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .25-.41='40%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .41&amp;lt;-high='0%' ;&lt;/P&gt;&lt;P&gt;value&amp;nbsp; ftr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0-.11='100%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .12-.14='80%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .15-.22='60%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .23-.34='40%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .4&amp;lt;-high='0%' ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;length LOS_Score&amp;nbsp; $ 4;&lt;/P&gt;&lt;P&gt;LOS_Score=putn(percent_18,put(type_new,$type.));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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>Thu, 13 Sep 2012 01:40:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scoring-based-on-a-range-of-values/m-p/117185#M32331</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-09-13T01:40:02Z</dc:date>
    </item>
  </channel>
</rss>

