<?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: nonlinear regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638785#M30563</link>
    <description>&lt;P&gt;NLIN does not make the same assumption about the response distribution as when you specify DIST=POISSON in PROC GENMOD, and the two procedures do not use the same estimation method. I suggest you use the results from PROC GENMOD and don't use NLIN.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Apr 2020 19:32:42 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2020-04-09T19:32:42Z</dc:date>
    <item>
      <title>nonlinear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638480#M30555</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I want to apply the&amp;nbsp; nonlinear regression on the data below. my question is&amp;nbsp; how&amp;nbsp; identify the parameters value?&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data accidents;&lt;BR /&gt;input number time intervention time_af_int ;&lt;BR /&gt;datalines; &lt;BR /&gt;17 1 0 0&lt;BR /&gt;10 2 0 0&lt;BR /&gt;15 3 0 0&lt;BR /&gt;14 4 0 0&lt;BR /&gt;26 5 0 0&lt;BR /&gt;9 6 0 0&lt;BR /&gt;11 7 0 0&lt;BR /&gt;17 8 0 0&lt;BR /&gt;10 9 0 0&lt;BR /&gt;15 10 0 0&lt;BR /&gt;21 11 0 0&lt;BR /&gt;11 12 0 0&lt;BR /&gt;14 13 0 0&lt;BR /&gt;16 14 0 0&lt;BR /&gt;9 15 0 0&lt;BR /&gt;11 16 0 0&lt;BR /&gt;13 17 1 1&lt;BR /&gt;10 18 1 2 &lt;BR /&gt;12 19 1 3&lt;BR /&gt;5 20 1 4 &lt;BR /&gt;11 21 1 5&lt;BR /&gt;7 22 1 6&lt;BR /&gt;10 23 1 7&lt;BR /&gt;7 24 1 8&lt;BR /&gt;9 25 1 9 &lt;BR /&gt;6 26 1 10&lt;BR /&gt;6 27 1 11&lt;BR /&gt;6 28 1 12 &lt;BR /&gt;10 29 1 13&lt;BR /&gt;8 30 1 14&lt;BR /&gt;11 31 1 15&lt;BR /&gt;7 32 1 16&lt;BR /&gt;8 33 1 17&lt;BR /&gt;5 34 1 18 &lt;BR /&gt;6 35 1 19&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; proc nlin data=accidents outest=est;&lt;BR /&gt; parameters b0=&lt;BR /&gt;            b1=&lt;BR /&gt;            b2=&lt;BR /&gt;            b3=&lt;BR /&gt;            ;&lt;BR /&gt;  model number=b0+(b1*time**2)+(b2*(intervention**2))+(b3*(time_af_int**2));&lt;BR /&gt;  run;&lt;BR /&gt;  &lt;BR /&gt;  &lt;BR /&gt;   &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 20:24:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638480#M30555</guid>
      <dc:creator>bara</dc:creator>
      <dc:date>2020-04-08T20:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: nonlinear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638624#M30556</link>
      <description>&lt;P&gt;This is a linear regression. You do not need PROC NLIN. You can use PROC GLM to obtain the parameter estimates:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; proc glm data=accidents;
  model number= time*time intervention*intervention time_af_int*time_af_int;
  run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Apr 2020 09:53:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638624#M30556</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-04-09T09:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: nonlinear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638720#M30557</link>
      <description>&lt;P&gt;Also, given that the response variable is a count, it is more appropriate to use Poisson regression estimated by maximum likelihood, which btw is a log-linear model - a nonlinear model. For example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod;
model number=time*time intervention*intervention time_af_int*time_af_int / dist=poisson;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 16:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638720#M30557</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-04-09T16:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: nonlinear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638746#M30558</link>
      <description>&lt;P&gt;sorry, the model&lt;/P&gt;&lt;P&gt;number=b0*(time**b1)*(intervention**b2)*(time_af_int**b3)&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 17:18:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638746#M30558</guid>
      <dc:creator>bara</dc:creator>
      <dc:date>2020-04-09T17:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: nonlinear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638752#M30559</link>
      <description>&lt;P&gt;Take the log of both sides and you get a linear model for log(number).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in case you come back with yet another model, the answer to your question is that you make an educated guess. When possible, you can &lt;A href="https://blogs.sas.com/content/iml/2018/06/27/reduced-choose-parameters-mixed-model.html" target="_self"&gt;use a reduced model to obtain an initial guess.&lt;/A&gt;&amp;nbsp;You can also &lt;A href="https://blogs.sas.com/content/iml/2018/06/25/grid-search-for-parameters-sas.html" target="_self"&gt;use a grid search to find initial parameter values for regression models&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 17:45:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638752#M30559</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-04-09T17:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: nonlinear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638758#M30561</link>
      <description>&lt;P&gt;The Poisson model I showed earlier using PROC GENMOD is essentially that model. The only difference is that you are modeling the log(mean), as Rick suggests, rather than the mean directly and provides estimates of those parameters.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 18:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638758#M30561</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-04-09T18:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: nonlinear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638782#M30562</link>
      <description>&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;I used the Poisson model PROC GENMOD to estimate the parameters then use the NLIN.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There is an errors in the output. It is&amp;nbsp; segmented regression&amp;nbsp;&amp;nbsp;with breaking point at t=16&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 666px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38115i2F2184F8E8DC6FA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 19:26:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638782#M30562</guid>
      <dc:creator>bara</dc:creator>
      <dc:date>2020-04-09T19:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: nonlinear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638785#M30563</link>
      <description>&lt;P&gt;NLIN does not make the same assumption about the response distribution as when you specify DIST=POISSON in PROC GENMOD, and the two procedures do not use the same estimation method. I suggest you use the results from PROC GENMOD and don't use NLIN.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 19:32:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638785#M30563</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-04-09T19:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: nonlinear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638983#M30578</link>
      <description>&lt;P&gt;If you are determined to fit this using a nonlinear method, you may want to consider NLMIXED.&amp;nbsp; There you can specify various distributions in the MODEL statement.&amp;nbsp; However, I will warn you that NLMIXED, while very powerful and flexible, is one of the most difficult PROCs to implement correctly.&amp;nbsp; Be sure to check all of the Examples in the documentation (including the two in the Getting Started section) and especially Example 82.4 Poisson-Normal Model with Count Data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 14:46:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/638983#M30578</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-04-10T14:46:22Z</dc:date>
    </item>
  </channel>
</rss>

