<?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: converting data to a different scale in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/converting-data-to-a-different-scale/m-p/549833#M152620</link>
    <description>&lt;P&gt;I am personally confused on the round function because I don't understand what to put in the parenthesis for round(x, #).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes two decimal space&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to change the scale as in if I had a score of 19/30 and all my other numbers are out of 30, is there a SAS function for SAS to translate them all out of 100 such as 15/30 to 50/100?&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2019 03:43:07 GMT</pubDate>
    <dc:creator>olivia123456</dc:creator>
    <dc:date>2019-04-10T03:43:07Z</dc:date>
    <item>
      <title>converting data to a different scale</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-data-to-a-different-scale/m-p/549807#M152611</link>
      <description>&lt;P&gt;How do you convert data scores that are normally out of 30 to out of 100 on SAS and how to round them to a 2 decimal space.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 21:07:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-data-to-a-different-scale/m-p/549807#M152611</guid>
      <dc:creator>olivia123456</dc:creator>
      <dc:date>2019-04-09T21:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: converting data to a different scale</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-data-to-a-different-scale/m-p/549811#M152613</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/268237"&gt;@olivia123456&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;How do you convert data scores that are normally out of 30 to out of 100 on SAS&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you mean you have scores 0 to 30 and you want them to be 0 to 100?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, you can multiply each score on the 0 to 30 scale by 100/30&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;and how to round them to a 2 decimal space.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the ROUND function&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p0tj6cmga7p8qln1ejh6ebevm0c9.htm&amp;amp;docsetVersion=3.1&amp;amp;locale=en" target="_blank" rel="noopener"&gt;https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p0tj6cmga7p8qln1ejh6ebevm0c9.htm&amp;amp;docsetVersion=3.1&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 21:38:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-data-to-a-different-scale/m-p/549811#M152613</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-09T21:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: converting data to a different scale</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-data-to-a-different-scale/m-p/549833#M152620</link>
      <description>&lt;P&gt;I am personally confused on the round function because I don't understand what to put in the parenthesis for round(x, #).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes two decimal space&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to change the scale as in if I had a score of 19/30 and all my other numbers are out of 30, is there a SAS function for SAS to translate them all out of 100 such as 15/30 to 50/100?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 03:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-data-to-a-different-scale/m-p/549833#M152620</guid>
      <dc:creator>olivia123456</dc:creator>
      <dc:date>2019-04-10T03:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: converting data to a different scale</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-data-to-a-different-scale/m-p/549835#M152621</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* algebra:
15/30 = X/100
(15/30)*100 = (X/100)*100
(15/30)*100 = X
*/

data want;
   do score=0 to 30;
      result30=score/30;
      result100=(result30)*100;
      result100rnd0=round(result100,1);
      result100rnd1=round(result100,.1);
      result100rnd2=round(result100,.01);  * &amp;lt;&amp;lt;&amp;lt; this is probably what you want? ;
      result100rnd3=round(result100,.001);
      output;
   end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;is there a SAS function for SAS to translate them all out of 100 such as 15/30 to 50/100?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;No.&amp;nbsp; Nor is there one to translate them all from 23 to 105, 42 to 132, 13 to 48, etc.&amp;nbsp; But the math is relatively simple.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 04:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-data-to-a-different-scale/m-p/549835#M152621</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-04-10T04:32:02Z</dc:date>
    </item>
  </channel>
</rss>

