<?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: PROC NLIN in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-NLIN/m-p/462997#M24139</link>
    <description>&lt;P&gt;The PROC NLILN documentation contains &lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_nlin_gettingstarted03.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;a Getting Started example&lt;/A&gt;&amp;nbsp;as well as more compilcated examples. To use the procedure your data set should contain MULTIPLE pairs of the (x, y) data values. A typical usage is as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc nlin data=Have;
   parms a=37 b=3900 c=0.3;
   model y = a*exp(-b*(x-c)**2);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, I will point out that you can solve this problem by using PROC GENMOD (or even PROC REG). If you take the log of both sides, your model becomes&lt;/P&gt;
&lt;P&gt;log(Y) = log(a) - b*(x-c)**2&lt;/P&gt;
&lt;P&gt;which (if you reparametrize) is equivalent to a quadratic model for log(Y):&lt;/P&gt;
&lt;P&gt;log(Y) = B0 + B1*x + B2*x**2&lt;/P&gt;
&lt;P&gt;Which approach&amp;nbsp;is better depends on &lt;A href="https://blogs.sas.com/content/iml/2015/09/16/plot-distrib-exp.html" target="_self"&gt;an assumption about how the errors are distributed.&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2018 13:17:43 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2018-05-17T13:17:43Z</dc:date>
    <item>
      <title>PROC NLIN</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-NLIN/m-p/462938#M24133</link>
      <description>&lt;P&gt;I am in need to calculate the initial and final NLLS of ai, bi, ci. With this I have the initial estimates of ai, bi, ci. I aware that the following equations would help to calculate the initial and final NLLS . However, I am struggling to write the SAS code through PROC NLIN. I would be much thankful, if anyone may help to write the SAS Code PROC NLIN.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times" size="5"&gt;Equation : yi = ai exp(-bi(x-ci)^2)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;yi = 0.31, ai = 37, bi=3900.19, ci=0.314, x=0.291&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 06:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-NLIN/m-p/462938#M24133</guid>
      <dc:creator>SONAIRAJAN</dc:creator>
      <dc:date>2018-05-17T06:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC NLIN</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-NLIN/m-p/462997#M24139</link>
      <description>&lt;P&gt;The PROC NLILN documentation contains &lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_nlin_gettingstarted03.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;a Getting Started example&lt;/A&gt;&amp;nbsp;as well as more compilcated examples. To use the procedure your data set should contain MULTIPLE pairs of the (x, y) data values. A typical usage is as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc nlin data=Have;
   parms a=37 b=3900 c=0.3;
   model y = a*exp(-b*(x-c)**2);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, I will point out that you can solve this problem by using PROC GENMOD (or even PROC REG). If you take the log of both sides, your model becomes&lt;/P&gt;
&lt;P&gt;log(Y) = log(a) - b*(x-c)**2&lt;/P&gt;
&lt;P&gt;which (if you reparametrize) is equivalent to a quadratic model for log(Y):&lt;/P&gt;
&lt;P&gt;log(Y) = B0 + B1*x + B2*x**2&lt;/P&gt;
&lt;P&gt;Which approach&amp;nbsp;is better depends on &lt;A href="https://blogs.sas.com/content/iml/2015/09/16/plot-distrib-exp.html" target="_self"&gt;an assumption about how the errors are distributed.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 13:17:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-NLIN/m-p/462997#M24139</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-05-17T13:17:43Z</dc:date>
    </item>
  </channel>
</rss>

