<?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 Calculating percent change... in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Calculating-percent-change/m-p/4926#M417</link>
    <description>Hi,&lt;BR /&gt;
  I have data like the following with two variables (old and new):&lt;BR /&gt;
&lt;BR /&gt;
Old    New&lt;BR /&gt;
5         8&lt;BR /&gt;
2         6&lt;BR /&gt;
10       3&lt;BR /&gt;
54       48&lt;BR /&gt;
25       14&lt;BR /&gt;
................and so on.&lt;BR /&gt;
How do I calculate the percent change from the old to the new using SAS? &lt;BR /&gt;
thanks very much!</description>
    <pubDate>Wed, 03 Oct 2007 16:37:33 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-10-03T16:37:33Z</dc:date>
    <item>
      <title>Calculating percent change...</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Calculating-percent-change/m-p/4926#M417</link>
      <description>Hi,&lt;BR /&gt;
  I have data like the following with two variables (old and new):&lt;BR /&gt;
&lt;BR /&gt;
Old    New&lt;BR /&gt;
5         8&lt;BR /&gt;
2         6&lt;BR /&gt;
10       3&lt;BR /&gt;
54       48&lt;BR /&gt;
25       14&lt;BR /&gt;
................and so on.&lt;BR /&gt;
How do I calculate the percent change from the old to the new using SAS? &lt;BR /&gt;
thanks very much!</description>
      <pubDate>Wed, 03 Oct 2007 16:37:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Calculating-percent-change/m-p/4926#M417</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-10-03T16:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating percent change...</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Calculating-percent-change/m-p/4927#M418</link>
      <description>data numbers;&lt;BR /&gt;
input old new;&lt;BR /&gt;
datalines;&lt;BR /&gt;
5 8&lt;BR /&gt;
2 6&lt;BR /&gt;
10 3&lt;BR /&gt;
54 48&lt;BR /&gt;
25 14&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data perchange;&lt;BR /&gt;
set numbers;&lt;BR /&gt;
perchg = ((New-old)/old)* 100;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
I think this should help. Format you perchg to limit the display of the decimals.&lt;BR /&gt;
&lt;BR /&gt;
APS</description>
      <pubDate>Wed, 03 Oct 2007 17:31:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Calculating-percent-change/m-p/4927#M418</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-10-03T17:31:19Z</dc:date>
    </item>
  </channel>
</rss>

