<?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 Why proc nlmixed gave different results? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Why-proc-nlmixed-gave-different-results/m-p/426480#M22406</link>
    <description>&lt;P&gt;dear all,&lt;/P&gt;&lt;P&gt;I have a question related to proc nlmixed. I am reading following SAS article:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_nlmixed_sect006.htm" target="_self"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_nlmixed_sect006.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original SAS code in this article is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   proc nlmixed data=tree;
      parms b1=190 b2=700 b3=350 s2u=1000 s2e=60;
      num = b1+u1;
      ex  = exp(-(day-b2)/b3);
      den = 1 + ex;&lt;BR /&gt;
     &lt;EM&gt; &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;model y ~ normal(num/den,&lt;FONT color="#0000FF"&gt;s2e&lt;/FONT&gt;);&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/EM&gt;
      random u1 ~ normal(0,s2u) subject=tree;
   run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I changed the above code to following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   proc nlmixed data=tree;
      parms b1=190 b2=700 b3=350 s2u=1000 s2e=60;
      num = b1+u1;
      ex  = exp(-(day-b2)/b3);
      den = 1 + ex;&lt;BR /&gt;
      &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;EM&gt;lh  = pdf('normal', y , num/den, &lt;FONT color="#0000FF"&gt;s2e&lt;/FONT&gt;);
      ll  = log(lh);
      model y ~ general(ll);&lt;/EM&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;
      random u1 ~ normal(0,s2u) subject=tree;
   run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The parameter estimates of two codes are almost identical except for one parameter "&lt;FONT color="#0000FF"&gt;s2e&lt;/FONT&gt;". The &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;FONT color="#0000FF"&gt;s2e&lt;/FONT&gt;&lt;SPAN&gt;" from&amp;nbsp;&lt;/SPAN&gt;original code&amp;nbsp;is &lt;FONT color="#FF0000"&gt;61.5&lt;/FONT&gt;; however&amp;nbsp;&amp;nbsp;t&lt;SPAN&gt;he&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;FONT color="#0000FF"&gt;s2e&lt;/FONT&gt;&lt;SPAN&gt;" from&amp;nbsp;modified&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;code&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;is only &lt;FONT color="#FF0000"&gt;7.8&lt;/FONT&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I thought the two codes should give same results. Can anyone point out what went wrong in modified code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2018 15:19:55 GMT</pubDate>
    <dc:creator>lxl65</dc:creator>
    <dc:date>2018-01-10T15:19:55Z</dc:date>
    <item>
      <title>Why proc nlmixed gave different results?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-proc-nlmixed-gave-different-results/m-p/426480#M22406</link>
      <description>&lt;P&gt;dear all,&lt;/P&gt;&lt;P&gt;I have a question related to proc nlmixed. I am reading following SAS article:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_nlmixed_sect006.htm" target="_self"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_nlmixed_sect006.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original SAS code in this article is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   proc nlmixed data=tree;
      parms b1=190 b2=700 b3=350 s2u=1000 s2e=60;
      num = b1+u1;
      ex  = exp(-(day-b2)/b3);
      den = 1 + ex;&lt;BR /&gt;
     &lt;EM&gt; &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;model y ~ normal(num/den,&lt;FONT color="#0000FF"&gt;s2e&lt;/FONT&gt;);&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/EM&gt;
      random u1 ~ normal(0,s2u) subject=tree;
   run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I changed the above code to following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   proc nlmixed data=tree;
      parms b1=190 b2=700 b3=350 s2u=1000 s2e=60;
      num = b1+u1;
      ex  = exp(-(day-b2)/b3);
      den = 1 + ex;&lt;BR /&gt;
      &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;EM&gt;lh  = pdf('normal', y , num/den, &lt;FONT color="#0000FF"&gt;s2e&lt;/FONT&gt;);
      ll  = log(lh);
      model y ~ general(ll);&lt;/EM&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;
      random u1 ~ normal(0,s2u) subject=tree;
   run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The parameter estimates of two codes are almost identical except for one parameter "&lt;FONT color="#0000FF"&gt;s2e&lt;/FONT&gt;". The &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;FONT color="#0000FF"&gt;s2e&lt;/FONT&gt;&lt;SPAN&gt;" from&amp;nbsp;&lt;/SPAN&gt;original code&amp;nbsp;is &lt;FONT color="#FF0000"&gt;61.5&lt;/FONT&gt;; however&amp;nbsp;&amp;nbsp;t&lt;SPAN&gt;he&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;FONT color="#0000FF"&gt;s2e&lt;/FONT&gt;&lt;SPAN&gt;" from&amp;nbsp;modified&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;code&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;is only &lt;FONT color="#FF0000"&gt;7.8&lt;/FONT&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I thought the two codes should give same results. Can anyone point out what went wrong in modified code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 15:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-proc-nlmixed-gave-different-results/m-p/426480#M22406</guid>
      <dc:creator>lxl65</dc:creator>
      <dc:date>2018-01-10T15:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why proc nlmixed gave different results?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-proc-nlmixed-gave-different-results/m-p/426932#M22419</link>
      <description>&lt;P&gt;The models are equivalent, but the code from the doc is &lt;A href="https://communities.sas.com/61.5139" target="_self"&gt;estimating the variance&lt;/A&gt; whereas your code is estimating the standard deviation. Note that&amp;nbsp;61.5139 = (7.8430)**2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 17:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-proc-nlmixed-gave-different-results/m-p/426932#M22419</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-01-11T17:51:06Z</dc:date>
    </item>
  </channel>
</rss>

