<?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: How to fit nonlinear models with heterogeneous variance? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-nonlinear-models-with-heterogeneous-variance/m-p/575492#M28266</link>
    <description>&lt;P&gt;Thank you for your response &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&amp;nbsp;.&lt;BR /&gt;I know that you mean, but I would like to fit nonlinear models that same form which Littel (2006) show in your book with linear models. For example, for to fit heterogenous variance in linear models, he use an variance function for the following linear model: y = a + bx; with followling procedure:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc nlmixed data=LR;
 parms a=4.5 b=7.5 c=.01 sig2=5;
 mean = a+b*x;
 model y ~ normal(mean,sig2*exp(c*x));
 predict mean out=mean df=16;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The variance function is Var = σ²exp{xγ};&lt;BR /&gt;where σ² = sig² and γ = c.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if I could use this same procedure for nonlinear models. And what function of variance could I use in place of&amp;nbsp;σ²exp{xγ}.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REFERENCE&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Littell, Ramon C., George A. Milliken, Walter W. Stroup, Russell D. Wolfinger, and Oliver Schabenberger. 2006. &lt;I&gt;SAS&lt;/I&gt;&lt;I&gt;® &lt;/I&gt;&lt;I&gt;for Mixed Models, Second Edition&lt;/I&gt;. Cary, NC: SAS Institute Inc.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jul 2019 17:30:55 GMT</pubDate>
    <dc:creator>vitormacedo</dc:creator>
    <dc:date>2019-07-22T17:30:55Z</dc:date>
    <item>
      <title>How to fit nonlinear models with heterogeneous variance?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-nonlinear-models-with-heterogeneous-variance/m-p/575143#M28251</link>
      <description>&lt;P&gt;I have two variables. Independent Variable: ALT; and dependent variable: IL.&lt;BR /&gt;I would like to fit the following nonlinear model -&amp;gt; IL = 100 * (1-exp (-c * ALT)). I was using the following procedure:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC NLIN DATA=TEST METHOD=DUD; 
PARAMETERS c=0.036; 
MODEL IL=100*(1-exp(-c*ALT));
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, as can be seen from the figure below, the data variance is heterogeneous:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31170iD7998FD5303A1A2D/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot.png" alt="SGPlot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What procedure to use to fit the model considering heterogeneous variance?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jul 2019 14:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-nonlinear-models-with-heterogeneous-variance/m-p/575143#M28251</guid>
      <dc:creator>vitormacedo</dc:creator>
      <dc:date>2019-07-20T14:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to fit nonlinear models with heterogeneous variance?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-nonlinear-models-with-heterogeneous-variance/m-p/575197#M28255</link>
      <description>&lt;P&gt;&lt;A title="How to score and graph a quantile regression model in SAS" href="https://blogs.sas.com/content/iml/2018/08/06/score-quantile-regression-sas.html" target="_blank"&gt;quantile&lt;U&gt; regression model&amp;nbsp; &amp;nbsp;?&lt;/U&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;A href="https://blogs.sas.com/content/iml/2018/08/06/score-quantile-regression-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2018/08/06/score-quantile-regression-sas.html&lt;/A&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2019 11:50:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-nonlinear-models-with-heterogeneous-variance/m-p/575197#M28255</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-07-21T11:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to fit nonlinear models with heterogeneous variance?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-nonlinear-models-with-heterogeneous-variance/m-p/575254#M28259</link>
      <description>&lt;P&gt;Quantile regression, as suggested by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp; is a great idea. But it can't fit general non-linear relationships. You can turn your problem into a linear one by fitting&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;log(1-IL/100) = -c*ALT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;by quantile regression. Do this by defining the new variable Z = log(1-IL/100) in a new dataset and fit with&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;model Z = ALT;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in proc quantreg.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please tell us if this worked. Good luck!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 02:56:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-nonlinear-models-with-heterogeneous-variance/m-p/575254#M28259</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-07-22T02:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to fit nonlinear models with heterogeneous variance?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-nonlinear-models-with-heterogeneous-variance/m-p/575492#M28266</link>
      <description>&lt;P&gt;Thank you for your response &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&amp;nbsp;.&lt;BR /&gt;I know that you mean, but I would like to fit nonlinear models that same form which Littel (2006) show in your book with linear models. For example, for to fit heterogenous variance in linear models, he use an variance function for the following linear model: y = a + bx; with followling procedure:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc nlmixed data=LR;
 parms a=4.5 b=7.5 c=.01 sig2=5;
 mean = a+b*x;
 model y ~ normal(mean,sig2*exp(c*x));
 predict mean out=mean df=16;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The variance function is Var = σ²exp{xγ};&lt;BR /&gt;where σ² = sig² and γ = c.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if I could use this same procedure for nonlinear models. And what function of variance could I use in place of&amp;nbsp;σ²exp{xγ}.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REFERENCE&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Littell, Ramon C., George A. Milliken, Walter W. Stroup, Russell D. Wolfinger, and Oliver Schabenberger. 2006. &lt;I&gt;SAS&lt;/I&gt;&lt;I&gt;® &lt;/I&gt;&lt;I&gt;for Mixed Models, Second Edition&lt;/I&gt;. Cary, NC: SAS Institute Inc.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 17:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-nonlinear-models-with-heterogeneous-variance/m-p/575492#M28266</guid>
      <dc:creator>vitormacedo</dc:creator>
      <dc:date>2019-07-22T17:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to fit nonlinear models with heterogeneous variance?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-nonlinear-models-with-heterogeneous-variance/m-p/575742#M28269</link>
      <description>&lt;P&gt;proc nlmixed is for MIXED model. But yours is GLM .&lt;/P&gt;
&lt;P&gt;I think you could try PROC GENMOD , in which you can customize variance function or marginal distribution.&lt;/P&gt;
&lt;P&gt;or&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; might have some good ideas .&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 11:24:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-nonlinear-models-with-heterogeneous-variance/m-p/575742#M28269</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-07-23T11:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to fit nonlinear models with heterogeneous variance?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-nonlinear-models-with-heterogeneous-variance/m-p/575750#M28270</link>
      <description>&lt;P&gt;Personally, I'd follow the advice of&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&amp;nbsp;.&amp;nbsp; If the problem did not easily transform to a linear model, I'd use iterative reweighted least squares in PROC NLIN. There is &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=15.1&amp;amp;docsetTarget=statug_nlin_examples02.htm&amp;amp;locale=en" target="_self"&gt;an example in the doc&lt;/A&gt; that shows how to use the _WEIGHT_ variable to handle heteroskedastic data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 11:37:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-nonlinear-models-with-heterogeneous-variance/m-p/575750#M28270</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-07-23T11:37:17Z</dc:date>
    </item>
  </channel>
</rss>

