<?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: Problem with 'second order optimality condition' in proc nlmixed in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-second-order-optimality-condition-in-proc-nlmixed/m-p/104235#M5510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is all a guess, without seeing the data structure.&amp;nbsp; I think there is a "complete solution" to the existing data, given the fixed effects, leaving no variability from individual to individual after accounting for all fixed effects.&amp;nbsp; I certainly would not trust any of the standard errors or tests, given that the Hessian is non-positive definite.&amp;nbsp; It may be that the model is over-specified.&amp;nbsp; What happens if you drop some of the fixed effects?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Aug 2012 11:31:47 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2012-08-27T11:31:47Z</dc:date>
    <item>
      <title>Problem with 'second order optimality condition' in proc nlmixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-second-order-optimality-condition-in-proc-nlmixed/m-p/104234#M5509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am working with 9.3 version. I submit the following code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc nlmixed data=x;&lt;/P&gt;&lt;P&gt;lambda=exp(b0+blogdisage*logdisage+bloglos*loglos+bpows*powsYES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ++b1mar*marMARRIED+b2mar*marPREVIOUSLY_MARRIED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; +bseq*seq+e);&lt;/P&gt;&lt;P&gt;ll=-lambda*rtime**(alpha+1)+rstatus*(LOG(alpha+1)+alpha*LOG(rtime)+LOG(lambda));&lt;/P&gt;&lt;P&gt;MODEL rtime~GENERAL(ll);&lt;/P&gt;&lt;P&gt;RANDOM e~NORMAL(0,s2) SUBJECT=id;&lt;/P&gt;&lt;P&gt;PARMS b0=1 blogdisage=0 bloglos=0 bpows=0 b1mar=0 b2mar=0 bseq=0 s2=1 alpha=0;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and got this notice in log:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: FCONV convergence criterion satisfied.&lt;/P&gt;&lt;P&gt;NOTE: At least one element of the (projected) gradient is greater than 1e-3.&lt;/P&gt;&lt;P&gt;WARNING: The final Hessian matrix is full rank but has at least one negative eigenvalue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Second-order optimality condition violated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not understand what's happened but I have got the following parameter estimates that has nothing for S2 (Random Variance). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Nlmixed: Parameter Estimates"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;b0&lt;/TH&gt;&lt;TD class="r data"&gt;0.7987&lt;/TD&gt;&lt;TD class="r data"&gt;0.6933&lt;/TD&gt;&lt;TD class="r data"&gt;2443&lt;/TD&gt;&lt;TD class="r data"&gt;1.15&lt;/TD&gt;&lt;TD class="r data"&gt;0.2494&lt;/TD&gt;&lt;TD class="r data"&gt;0.05&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-0.5608&lt;/TD&gt;&lt;TD class="r data"&gt;2.1582&lt;/TD&gt;&lt;TD class="r data"&gt;717.9996&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;blogdisage&lt;/TH&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-0.7512&lt;/TD&gt;&lt;TD class="r data"&gt;0.1124&lt;/TD&gt;&lt;TD class="r data"&gt;2443&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-6.68&lt;/TD&gt;&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;&lt;TD class="r data"&gt;0.05&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-0.9717&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-0.5308&lt;/TD&gt;&lt;TD class="r data"&gt;2882.034&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;bloglos&lt;/TH&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-0.1244&lt;/TD&gt;&lt;TD class="r data"&gt;0.03542&lt;/TD&gt;&lt;TD class="r data"&gt;2443&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-3.51&lt;/TD&gt;&lt;TD class="r data"&gt;0.0005&lt;/TD&gt;&lt;TD class="r data"&gt;0.05&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-0.1939&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-0.05496&lt;/TD&gt;&lt;TD class="r data"&gt;834.6029&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;bpows&lt;/TH&gt;&lt;TD class="r data"&gt;0.2024&lt;/TD&gt;&lt;TD class="r data"&gt;0.4954&lt;/TD&gt;&lt;TD class="r data"&gt;2443&lt;/TD&gt;&lt;TD class="r data"&gt;0.41&lt;/TD&gt;&lt;TD class="r data"&gt;0.6829&lt;/TD&gt;&lt;TD class="r data"&gt;0.05&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-0.7691&lt;/TD&gt;&lt;TD class="r data"&gt;1.1740&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-717.951&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;b1mar&lt;/TH&gt;&lt;TD class="r data"&gt;0.03810&lt;/TD&gt;&lt;TD class="r data"&gt;0.04843&lt;/TD&gt;&lt;TD class="r data"&gt;2443&lt;/TD&gt;&lt;TD class="r data"&gt;0.79&lt;/TD&gt;&lt;TD class="r data"&gt;0.4315&lt;/TD&gt;&lt;TD class="r data"&gt;0.05&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-0.05687&lt;/TD&gt;&lt;TD class="r data"&gt;0.1331&lt;/TD&gt;&lt;TD class="r data"&gt;34.79886&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;b2mar&lt;/TH&gt;&lt;TD class="r data"&gt;0.06841&lt;/TD&gt;&lt;TD class="r data"&gt;0.04097&lt;/TD&gt;&lt;TD class="r data"&gt;2443&lt;/TD&gt;&lt;TD class="r data"&gt;1.67&lt;/TD&gt;&lt;TD class="r data"&gt;0.0951&lt;/TD&gt;&lt;TD class="r data"&gt;0.05&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-0.01194&lt;/TD&gt;&lt;TD class="r data"&gt;0.1488&lt;/TD&gt;&lt;TD class="r data"&gt;190.9215&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;bseq&lt;/TH&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-0.1507&lt;/TD&gt;&lt;TD class="r data"&gt;0.03239&lt;/TD&gt;&lt;TD class="r data"&gt;2443&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-4.65&lt;/TD&gt;&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;&lt;TD class="r data"&gt;0.05&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-0.2142&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-0.08721&lt;/TD&gt;&lt;TD class="r data"&gt;829.1515&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;s2&lt;/TH&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-111E-14&lt;/TD&gt;&lt;TD class="r data"&gt;.&lt;/TD&gt;&lt;TD class="r data"&gt;2443&lt;/TD&gt;&lt;TD class="r data"&gt;.&lt;/TD&gt;&lt;TD class="r data"&gt;.&lt;/TD&gt;&lt;TD class="r data"&gt;0.05&lt;/TD&gt;&lt;TD class="r data"&gt;.&lt;/TD&gt;&lt;TD class="r data"&gt;.&lt;/TD&gt;&lt;TD class="r data"&gt;234.112&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;alpha&lt;/TH&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-0.4764&lt;/TD&gt;&lt;TD class="r data"&gt;0.02492&lt;/TD&gt;&lt;TD class="r data"&gt;2443&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-19.12&lt;/TD&gt;&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;&lt;TD class="r data"&gt;0.05&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-0.5252&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap"&gt;-0.4275&lt;/TD&gt;&lt;TD class="r data"&gt;2446.752&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your comments on this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Issac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 20:13:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-second-order-optimality-condition-in-proc-nlmixed/m-p/104234#M5509</guid>
      <dc:creator>issac</dc:creator>
      <dc:date>2012-08-24T20:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 'second order optimality condition' in proc nlmixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-second-order-optimality-condition-in-proc-nlmixed/m-p/104235#M5510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is all a guess, without seeing the data structure.&amp;nbsp; I think there is a "complete solution" to the existing data, given the fixed effects, leaving no variability from individual to individual after accounting for all fixed effects.&amp;nbsp; I certainly would not trust any of the standard errors or tests, given that the Hessian is non-positive definite.&amp;nbsp; It may be that the model is over-specified.&amp;nbsp; What happens if you drop some of the fixed effects?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 11:31:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-second-order-optimality-condition-in-proc-nlmixed/m-p/104235#M5510</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-08-27T11:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 'second order optimality condition' in proc nlmixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-second-order-optimality-condition-in-proc-nlmixed/m-p/104236#M5511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. When I drop 'e' (random effect) from the model new error named "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Floating Point Zero Divide&lt;/SPAN&gt;" has shown up. Also when I exclude some of categorical columns, it did'n change anything. I also check the over specification condition and almost sure that it is not the case in the model.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 12:07:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-second-order-optimality-condition-in-proc-nlmixed/m-p/104236#M5511</guid>
      <dc:creator>issac</dc:creator>
      <dc:date>2012-08-30T12:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 'second order optimality condition' in proc nlmixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-second-order-optimality-condition-in-proc-nlmixed/m-p/104237#M5512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out this excellent article from the most recent SAS Global Forum. &lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/resources/papers/proceedings12/332-2012.pdf" title="http://support.sas.com/resources/papers/proceedings12/332-2012.pdf"&gt;http://support.sas.com/resources/papers/proceedings12/332-2012.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This paper deals with most of the common errors and warnings one can receive using the mixed-model procedures. Your Warning is discussed on page 14 (with good corrective hints).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 13:20:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-second-order-optimality-condition-in-proc-nlmixed/m-p/104237#M5512</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2012-08-30T13:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 'second order optimality condition' in proc nlmixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-second-order-optimality-condition-in-proc-nlmixed/m-p/104238#M5513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ivm;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for bring this good paper into my attention. That's great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 15:34:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-second-order-optimality-condition-in-proc-nlmixed/m-p/104238#M5513</guid>
      <dc:creator>issac</dc:creator>
      <dc:date>2012-08-30T15:34:37Z</dc:date>
    </item>
  </channel>
</rss>

