<?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: Random coefficients in NLMIXED, random parameter appears in estimates of fixed effects in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Random-coefficients-in-NLMIXED-random-parameter-appears-in/m-p/860691#M42527</link>
    <description>&lt;P&gt;Combining PGStats and StatsMan answers gives a full answer to my immediate question, but Stats Dave provided a great answer to my general underlying need.&lt;BR /&gt;I did not realize that GLIMMIX and GEE had the link function capability Stats Dave pointed out, and I also appreciate the suggestion that maybe a repeated measure approach would be appropriate.&lt;BR /&gt;&lt;BR /&gt;Since only one response gets to be marked as the solution, I will go with StatsDave, but readers who want to know why PROC NLMIXED generated an estimate of u, and why I shouldn't even have included u in the parms statement will want to look at PGStats and StatsMan answers.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2023 17:01:37 GMT</pubDate>
    <dc:creator>Jean-Jacques</dc:creator>
    <dc:date>2023-02-24T17:01:37Z</dc:date>
    <item>
      <title>Random coefficients in NLMIXED, random parameter appears in estimates of fixed effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-coefficients-in-NLMIXED-random-parameter-appears-in/m-p/860536#M42512</link>
      <description>&lt;P&gt;I am trying to fit a simple exponential decay model to some plant growth data, where exposure to a chemical affects biomass adversely.&lt;BR /&gt;I have several years of data. Each year is considered a random realization, and I want the common fixed model.&lt;BR /&gt;&lt;BR /&gt;I am using this program:&lt;BR /&gt;&lt;FONT color="#000000"&gt;proc nlmixed data=growth_response method=FIRO; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;parms b1=22 to 40 by 2 b2=0.001 to 0.01 by 0.001&amp;nbsp; u=-10 to 10 by 1 s2=1 s2u=1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;model biomass ~ normal((b1+u)*exp(-b2*exposure),s2);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;random u ~ normal(0,s2u) subject=year;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I expect to see b1, b2, s2 and s2u in the table of parameter estimates, and no estimate of u. But instead I get estimates of&amp;nbsp;b1, b2, &lt;U&gt;&lt;STRONG&gt;u&lt;/STRONG&gt;&lt;/U&gt;, s2 and s2u.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Can someone help understand why this is occurring and maybe suggest an alternate parameterization ?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;If it can help understand the issue, consider this example from the NLMIXED documentation, which of course estimates a completely different nonlinear model which would not be appropriate for my situation, but demonstrates how no estimate of the random effect u1 gets outputted into the table of parameter estimates.&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;proc nlmixed data=tree;&lt;BR /&gt;parms b1=190 b2=700 b3=350 s2u=1000 s2e=60;&lt;BR /&gt;num = b1+u1;&lt;BR /&gt;ex = exp(-(day-b2)/b3);&lt;BR /&gt;den = 1 + ex;&lt;BR /&gt;model y ~ normal(num/den,s2e);&lt;BR /&gt;random u1 ~ normal(0,s2u) subject=tree;&lt;BR /&gt;run;&lt;BR /&gt;:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;...which produces estimates of b1, b2, b3, s2e and s2u, but none of u1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 19:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-coefficients-in-NLMIXED-random-parameter-appears-in/m-p/860536#M42512</guid>
      <dc:creator>Jean-Jacques</dc:creator>
      <dc:date>2023-02-23T19:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Random coefficients in NLMIXED, random parameter appears in estimates of fixed effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-coefficients-in-NLMIXED-random-parameter-appears-in/m-p/860566#M42513</link>
      <description>&lt;P&gt;I don't know much about proc NLMIXED, but I would try removing u from the list of parameters (in the PARMS statement).&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 20:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-coefficients-in-NLMIXED-random-parameter-appears-in/m-p/860566#M42513</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2023-02-23T20:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Random coefficients in NLMIXED, random parameter appears in estimates of fixed effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-coefficients-in-NLMIXED-random-parameter-appears-in/m-p/860571#M42514</link>
      <description>&lt;P&gt;I certainly never thought it could be that simple! Thank you!&lt;BR /&gt;&lt;BR /&gt;The parms statement is there to provide starting values, and I didn't think it might also function as a request to output estimates of the parameters it includes.&lt;BR /&gt;Not including u in the parms statement succeeds in suppressing the output of the estimate of u, but starting values are needed for my estimation to converge.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Therefore, I&amp;nbsp; would feel better if someone with NLMIXED knowledge could confirm that whether or not the parms statement includes a given parameter, there is no underlying difference in the estimation, besides the parms statement providing the starting values.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 21:20:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-coefficients-in-NLMIXED-random-parameter-appears-in/m-p/860571#M42514</guid>
      <dc:creator>Jean-Jacques</dc:creator>
      <dc:date>2023-02-23T21:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Random coefficients in NLMIXED, random parameter appears in estimates of fixed effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-coefficients-in-NLMIXED-random-parameter-appears-in/m-p/860574#M42515</link>
      <description>&lt;P&gt;One side thought you might consider ... since the response mean is modeled as the expression you show, if you write the model on the log mean, it is essentially a linear model with random intercepts: log(mean(biomass)) = log(b1+u)-b2*exposure. You could do that by fitting the model in GLIMMIX, similar to the Getting Started example, but with DIST=NORMAL and LINK=LOG.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 21:52:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-coefficients-in-NLMIXED-random-parameter-appears-in/m-p/860574#M42515</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-02-23T21:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Random coefficients in NLMIXED, random parameter appears in estimates of fixed effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-coefficients-in-NLMIXED-random-parameter-appears-in/m-p/860576#M42516</link>
      <description>&lt;P&gt;I have definitely considered just using a linearization (in log biomass), and used PROC MIXED, which went a lot better.&amp;nbsp;&lt;BR /&gt;I&amp;nbsp;&lt;EM&gt;am&lt;/EM&gt; worried about the backtransformation, especially of the confidence envelope.&lt;BR /&gt;If you could suggest a good approach to&amp;nbsp;&lt;EM&gt;that&lt;/EM&gt; issue, I would love to consider it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As for including u in the parms statement, I just tested adding u=1 in the statement, which I think is supposed to be the SAS default when a parameter starting value is not provided. I got markedly different estimate from simply not including it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 22:03:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-coefficients-in-NLMIXED-random-parameter-appears-in/m-p/860576#M42516</guid>
      <dc:creator>Jean-Jacques</dc:creator>
      <dc:date>2023-02-23T22:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Random coefficients in NLMIXED, random parameter appears in estimates of fixed effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-coefficients-in-NLMIXED-random-parameter-appears-in/m-p/860584#M42519</link>
      <description>&lt;P&gt;You wouldn't need to log transform the response; just use the log link so that the response is still treated as normally distributed, but the specified model is on the log of the response mean. If this is repeated measures data (plants measured repeatedly over time) and you want to estimate the population-level parameters b1 and b2, then the easiest approach would be to fit a GEE model. Given the log-linear model as I wrote it earlier, the parameter estimate for exposure in the results is b2 directly, but the&amp;nbsp; exponentiated intercept is the estimate of b1. You could specify a different structure of the within-plant correlations by specifying the TYPE= option in the REPEATED statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gee;
class plant;
model biomass=exposure / link=log;
repeated subject=plant;
estimate 'b1' intercept 1 / exp;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Feb 2023 23:22:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-coefficients-in-NLMIXED-random-parameter-appears-in/m-p/860584#M42519</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-02-23T23:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Random coefficients in NLMIXED, random parameter appears in estimates of fixed effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-coefficients-in-NLMIXED-random-parameter-appears-in/m-p/860689#M42526</link>
      <description>&lt;P&gt;U is not a parameter in your model. S2U is. U is the realization of the random effect from the distribution of U you have defined with your RANDOM statement. No starting values are needed for U. You do need a starting value for its variance, though ... S2U.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 14:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-coefficients-in-NLMIXED-random-parameter-appears-in/m-p/860689#M42526</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2023-02-24T14:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Random coefficients in NLMIXED, random parameter appears in estimates of fixed effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-coefficients-in-NLMIXED-random-parameter-appears-in/m-p/860691#M42527</link>
      <description>&lt;P&gt;Combining PGStats and StatsMan answers gives a full answer to my immediate question, but Stats Dave provided a great answer to my general underlying need.&lt;BR /&gt;I did not realize that GLIMMIX and GEE had the link function capability Stats Dave pointed out, and I also appreciate the suggestion that maybe a repeated measure approach would be appropriate.&lt;BR /&gt;&lt;BR /&gt;Since only one response gets to be marked as the solution, I will go with StatsDave, but readers who want to know why PROC NLMIXED generated an estimate of u, and why I shouldn't even have included u in the parms statement will want to look at PGStats and StatsMan answers.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 17:01:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-coefficients-in-NLMIXED-random-parameter-appears-in/m-p/860691#M42527</guid>
      <dc:creator>Jean-Jacques</dc:creator>
      <dc:date>2023-02-24T17:01:37Z</dc:date>
    </item>
  </channel>
</rss>

