<?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: The final Hessian matrix is full rank but has at least one negative eigenvalue. Second-order  op in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/The-final-Hessian-matrix-is-full-rank-but-has-at-least-one/m-p/318137#M16780</link>
    <description>&lt;P&gt;Google can be your friend here: just search using the text of the error message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you Google "The final Hessian matrix is full rank but has at least one negative eigenvalue", you find these links:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="A SAS Communities discussion on this problem from 2012" href="http://tinyurl.com/z7s4q4g" target="_self"&gt;http://tinyurl.com/z7s4q4g&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="Tips and Strategies for Mixed Modelling with SAS/STAT Procedures" href="http://tinyurl.com/gorokea" target="_self"&gt;http://tinyurl.com/gorokea&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another useful resource is this paper&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="Advanced Techniques for Fitting Mixed Models Using SAS/STAT® Software" href="https://support.sas.com/resources/papers/proceedings15/SAS1919-2015.pdf" target="_self"&gt;https://support.sas.com/resources/papers/proceedings15/SAS1919-2015.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully one of these will suggest a solution for your problem. Good luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edited: Also, if you would provide a description of your study and and your model, someone on the list might be able to help you assess whether you have a correct model.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2016 05:52:29 GMT</pubDate>
    <dc:creator>sld</dc:creator>
    <dc:date>2016-12-12T05:52:29Z</dc:date>
    <item>
      <title>The final Hessian matrix is full rank but has at least one negative eigenvalue. Second-order  optima</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-final-Hessian-matrix-is-full-rank-but-has-at-least-one/m-p/318061#M16764</link>
      <description>&lt;P&gt;please help me to explain&amp;nbsp;my syntax.&lt;/P&gt;&lt;P&gt;data fish;&lt;BR /&gt;input count x1 x2 x3 x4;&amp;nbsp;&lt;BR /&gt;cards;&lt;BR /&gt;0 83.74 54.98 80.53 1.96&lt;BR /&gt;0 76.36 18.45 51.33 0.3&lt;BR /&gt;3 76.29 56.16 70.95 1.93&lt;BR /&gt;0 79.32 40.94 75.68 1.34&lt;BR /&gt;2 95.77 87.68 83.12 1.36&lt;BR /&gt;1 69.27 76.85 46.16 0.71&lt;BR /&gt;0 93.02 58.56 89.01 0.87&lt;BR /&gt;0 94.42 50.06 91.5 1.55&lt;BR /&gt;1 98.93 91.2 97.6 3.71&lt;BR /&gt;0 84.4 62.04 79.87 1.56&lt;BR /&gt;1 98.71 50.72 97.11 1.07&lt;BR /&gt;0 93.31 93.5 86.73 0.81&lt;BR /&gt;0 100.06 76.08 98.36 4.14&lt;BR /&gt;0 80.71 76.57 77.14 2&lt;BR /&gt;21 100.41 79.48 97.81 21.62&lt;BR /&gt;12 90.09 73.14 82.95 1.66&lt;BR /&gt;0 100.32 67.6 74.45 4.48&lt;BR /&gt;0 95.82 84.82 93.94 1.3&lt;BR /&gt;0 41.92 24.11 39.17 0.62&lt;BR /&gt;5 75.03 46.2 72.53 1.79&lt;BR /&gt;2 81 38.01 78.63 0.4&lt;BR /&gt;0 83.05 46.8 80.6 0.73&lt;BR /&gt;0 90.44 25.15 82.14 1.07&lt;BR /&gt;0 75.45 45.28 70.81 0.21&lt;BR /&gt;0 51.9 63.07 41.18 1.55&lt;BR /&gt;1 10.51 56.22 10.14 0.55&lt;BR /&gt;1 77.22 54.04 74.28 1.12&lt;BR /&gt;0 71.46 81.42 63.99 0.43&lt;BR /&gt;0 73.56 51.57 69.7 0.78&lt;BR /&gt;2 44.69 72.74 42.6 3.32&lt;BR /&gt;0 51.02 59.02 47.2 0.94&lt;BR /&gt;0 20.4 36.19 18.55 2.13&lt;BR /&gt;1 14.95 1.04 9.63 0.03&lt;BR /&gt;;&lt;BR /&gt;data fish;&lt;BR /&gt;set fish;&lt;BR /&gt;bound=1;&lt;BR /&gt;if count &amp;gt; bound then count=bound+1; * This is probably&lt;BR /&gt;how you would see the data if it was actually censored;&lt;BR /&gt;proc nlmixed TECH=NRRIDG; *untuk variabel KN1 TT2+ KNL TT5;&lt;BR /&gt;parms a0=0 a1=0 a2=0 a3=0 a4=0 b0=0 b1=0 b2=0 b3=0 b4=0 alpha=0.5;&lt;BR /&gt;bounds alpha&amp;gt;0;&lt;BR /&gt;lin = a0 + a1*x1 + a2*x2 + a3*x3 + a4*x4;&lt;BR /&gt;w = exp(lin)/(1+exp(lin));&lt;BR /&gt;eta = b0 + b1*x1 + b2*x2 + b3*x3 + b4*x4;&lt;BR /&gt;mu = exp(eta);&lt;BR /&gt;phi=1/alpha;&lt;BR /&gt;pdf=(gamma(count+phi)/(gamma(count+1)*gamma(phi)))&lt;BR /&gt;*((1/(1+alpha*mu))**phi*(alpha*mu/(1+alpha*mu))** count);&lt;BR /&gt;l_1 = w;&lt;BR /&gt;l_2 = (1-w) * pdf / (1-(1+alpha*mu)**(-phi));&lt;BR /&gt;cdf=0;&lt;BR /&gt;do t=1 to bound;&lt;BR /&gt;cdf=cdf+((1-w)*((gamma(t+phi)/(gamma(t+1)*gamma(phi)))&lt;BR /&gt;*((1/(1+alpha*mu))**phi*(alpha*mu/(1+alpha*mu))**t)/(1-(1+alpha*mu)**(-phi))));&lt;BR /&gt;end;&lt;BR /&gt;l_3= 1-cdf;&lt;BR /&gt;if count = 0 then ll = log(l_1);&lt;BR /&gt;if 0 &amp;lt; count &amp;lt;= bound then ll = log(l_2);&lt;BR /&gt;if count &amp;lt;= bound then d=0; else d=1;&lt;BR /&gt;ll=(1-d)*ll+d*log(l_3);&lt;BR /&gt;model count~general(ll);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but there is warning:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NOTE: GCONV convergence criterion satisfied.&lt;BR /&gt;NOTE: At least one element of the (projected) gradient is greater than 1e-3.&lt;BR /&gt;WARNING: The final Hessian matrix is full rank but has at least one negative eigenvalue. Second-order&lt;BR /&gt;optimality condition violated.&lt;BR /&gt;NOTE: PROCEDURE NLMIXED used (Total process time):&lt;BR /&gt;real time 0.28 seconds&lt;BR /&gt;cpu time 0.26 seconds&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2016 05:35:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-final-Hessian-matrix-is-full-rank-but-has-at-least-one/m-p/318061#M16764</guid>
      <dc:creator>rizayuli</dc:creator>
      <dc:date>2016-12-10T05:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: The final Hessian matrix is full rank but has at least one negative eigenvalue. Second-order  op</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-final-Hessian-matrix-is-full-rank-but-has-at-least-one/m-p/318137#M16780</link>
      <description>&lt;P&gt;Google can be your friend here: just search using the text of the error message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you Google "The final Hessian matrix is full rank but has at least one negative eigenvalue", you find these links:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="A SAS Communities discussion on this problem from 2012" href="http://tinyurl.com/z7s4q4g" target="_self"&gt;http://tinyurl.com/z7s4q4g&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="Tips and Strategies for Mixed Modelling with SAS/STAT Procedures" href="http://tinyurl.com/gorokea" target="_self"&gt;http://tinyurl.com/gorokea&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another useful resource is this paper&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="Advanced Techniques for Fitting Mixed Models Using SAS/STAT® Software" href="https://support.sas.com/resources/papers/proceedings15/SAS1919-2015.pdf" target="_self"&gt;https://support.sas.com/resources/papers/proceedings15/SAS1919-2015.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully one of these will suggest a solution for your problem. Good luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edited: Also, if you would provide a description of your study and and your model, someone on the list might be able to help you assess whether you have a correct model.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 05:52:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-final-Hessian-matrix-is-full-rank-but-has-at-least-one/m-p/318137#M16780</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2016-12-12T05:52:29Z</dc:date>
    </item>
  </channel>
</rss>

