<?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: Plotting Exponential Decay Curves in SAS and Analysis in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Plotting-Exponential-Decay-Curves-in-SAS-and-Analysis/m-p/703995#M26082</link>
    <description>Sorry nothing is wrong with the code but I was wondering if there was a better way to plot the curve to make it look for clean.&lt;BR /&gt;&lt;BR /&gt;I primarily was wondering how to run analysis on the model to find the parameters and p values.</description>
    <pubDate>Sun, 06 Dec 2020 23:03:11 GMT</pubDate>
    <dc:creator>Lorezo</dc:creator>
    <dc:date>2020-12-06T23:03:11Z</dc:date>
    <item>
      <title>Plotting Exponential Decay Curves in SAS and Analysis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plotting-Exponential-Decay-Curves-in-SAS-and-Analysis/m-p/703979#M26075</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the potentially novice question but I am stumped on how to plot an exponential decay curve for my data. In addition to this, I also wanted to run analysis on my data with this model but predicting parameters and also p values and r^2 values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Through digging online and such I came up with this set of code where I predicted starting parameters. I am hoping someone may have an easier solution and can help me run the analysis with my data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;data hosp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;input time sa @@;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;infile datalines dlm='09'x;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;datalines;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;0 84.46011014&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;0 84.70962302&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;0 80.96692981&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;0 82.96303286&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;1 95.06440758&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;1 93.69208673&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;1 85.20864879&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;1 76.97472372&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;1.5 59.88309139&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;1.5 64.62383612&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;1.5 68.61604221&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;1.5 55.14234665&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;2 82.4640071&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;2 68.61604221&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;2 67.74274713&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;2 57.88698834&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;3 94.19111249&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;3 75.72715932&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;3 78.97082677&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;3 77.34899304&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;4 78.47180101&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;4 55.01759021&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;4 54.89283377&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;4 83.96108438&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;5 61.13065579&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;5 45.91037006&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;5 43.29048482&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;5 54.01953869&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;proc sgscatter; plot time*sa;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;proc nlmixed data=hosp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;parms g0=84.537 g1=-0.078 sigma=1.3;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;mu=g0*exp(g1*time);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;model sa ~ normal(mu,sigma*sigma);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;predict g0*exp(g1*time) out=fit;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;proc sgplot data=fit;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;scatter x=time y=sa;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;series x=time y=pred;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance and sorry again for the novice question.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 22:06:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plotting-Exponential-Decay-Curves-in-SAS-and-Analysis/m-p/703979#M26075</guid>
      <dc:creator>Lorezo</dc:creator>
      <dc:date>2020-12-06T22:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting Exponential Decay Curves in SAS and Analysis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plotting-Exponential-Decay-Curves-in-SAS-and-Analysis/m-p/703980#M26076</link>
      <description>&lt;P&gt;What is wrong with the code you show?&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 22:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plotting-Exponential-Decay-Curves-in-SAS-and-Analysis/m-p/703980#M26076</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-12-06T22:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting Exponential Decay Curves in SAS and Analysis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plotting-Exponential-Decay-Curves-in-SAS-and-Analysis/m-p/703995#M26082</link>
      <description>Sorry nothing is wrong with the code but I was wondering if there was a better way to plot the curve to make it look for clean.&lt;BR /&gt;&lt;BR /&gt;I primarily was wondering how to run analysis on the model to find the parameters and p values.</description>
      <pubDate>Sun, 06 Dec 2020 23:03:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plotting-Exponential-Decay-Curves-in-SAS-and-Analysis/m-p/703995#M26082</guid>
      <dc:creator>Lorezo</dc:creator>
      <dc:date>2020-12-06T23:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting Exponential Decay Curves in SAS and Analysis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plotting-Exponential-Decay-Curves-in-SAS-and-Analysis/m-p/704011#M26087</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;a better way to plot the curve to make it look for clean.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't know what that means. Please explain further. Show us an example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;I primarily was wondering how to run analysis on the model to find the parameters and p values.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought your existing code does that.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 01:34:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plotting-Exponential-Decay-Curves-in-SAS-and-Analysis/m-p/704011#M26087</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-12-07T01:34:18Z</dc:date>
    </item>
  </channel>
</rss>

