<?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: WARNING: The final Hessian matrix is full rank but has at least one negative eigenvalue in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-The-final-Hessian-matrix-is-full-rank-but-has-at-least/m-p/753491#M36658</link>
    <description>&lt;P&gt;If the Hessian is full rank with a negative eigenvalue, you have two options.&amp;nbsp; One is to use a simpler model, the other is to find out which line of data (or lines) lead to the problem.&amp;nbsp; You could use a pseudo-jackknife approach to the latter, fitting the model while successively deleting a single observation.&amp;nbsp; If all of the reduced datasets lead to the same issue, then it is almost certainly a misspecification of the model issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jul 2021 12:51:57 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2021-07-12T12:51:57Z</dc:date>
    <item>
      <title>WARNING: The final Hessian matrix is full rank but has at least one negative eigenvalue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-The-final-Hessian-matrix-is-full-rank-but-has-at-least/m-p/753251#M36629</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on fitting nonlinear mixed model to my data using proc&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;nlmixed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My model has four fixed effects &amp;amp; five random effects.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But when I run the program, I get the following warning:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WARNING: The final Hessian matrix is full rank but has at least one&lt;BR /&gt;negative eigenvalue.&lt;BR /&gt;Second-order optimality condition violated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help me solve this problem and guide me to the right way to solve this problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My code is the following and the data is in the attachment:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;proc import datafile='C:\Users\Abbas Arkawazi\Desktop\test.xlsx'&lt;BR /&gt;DBMS =xlsx Out=test;&lt;BR /&gt;run;&lt;BR /&gt;proc nlmixed data=test ;&lt;BR /&gt; parms b0=1 b1=2 b2=3  b3=4  a=2  b=1  aa=3  bb=1  s=100;&lt;BR /&gt;   m =b0+(b1*age)+(b2*creatin)+(b3*gender);&lt;BR /&gt;   y=urea;&lt;BR /&gt;   if status_u=1 then  f=((aa*bb*a*b)/s)*(exp(-b*exp((y-m)/s)))*((1-exp(-b*exp((y-m)/s)))**(a-1))*((((1-exp(-b*exp((y-m)/s)))**a)**(aa-1))/((1-((1-exp(-b*exp((y-m)/s)))**a))**(aa+1)))*((1+((((1-exp(-b*exp((y-m)/s)))**a)/(1-((1-exp(-b*exp((y-m)/s)))**a)))**aa))**(-bb-1)) ;&lt;BR /&gt;   else f= 1-((1+(((1-exp(-b*exp((y-m)/s)))**a)/(1-(1-exp(-b*exp((y-m)/s)))**a))**aa)**-bb)  ;&lt;BR /&gt;   ll=log(f);&lt;BR /&gt;   model y ~ general(ll);&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 18:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-The-final-Hessian-matrix-is-full-rank-but-has-at-least/m-p/753251#M36629</guid>
      <dc:creator>Abbas_Arkawazi</dc:creator>
      <dc:date>2021-07-09T18:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The final Hessian matrix is full rank but has at least one negative eigenvalue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-The-final-Hessian-matrix-is-full-rank-but-has-at-least/m-p/753274#M36630</link>
      <description>&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Likelihood-in-PROC-NLMIXED-with-the-warning-of-Hessian-matrix/td-p/283766" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Likelihood-in-PROC-NLMIXED-with-the-warning-of-Hessian-matrix/td-p/283766&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 19:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-The-final-Hessian-matrix-is-full-rank-but-has-at-least/m-p/753274#M36630</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-09T19:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The final Hessian matrix is full rank but has at least one negative eigenvalue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-The-final-Hessian-matrix-is-full-rank-but-has-at-least/m-p/753311#M36637</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;"Final Hessian"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Somebody should take that as a username.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jul 2021 05:16:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-The-final-Hessian-matrix-is-full-rank-but-has-at-least/m-p/753311#M36637</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2021-07-10T05:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The final Hessian matrix is full rank but has at least one negative eigenvalue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-The-final-Hessian-matrix-is-full-rank-but-has-at-least/m-p/753491#M36658</link>
      <description>&lt;P&gt;If the Hessian is full rank with a negative eigenvalue, you have two options.&amp;nbsp; One is to use a simpler model, the other is to find out which line of data (or lines) lead to the problem.&amp;nbsp; You could use a pseudo-jackknife approach to the latter, fitting the model while successively deleting a single observation.&amp;nbsp; If all of the reduced datasets lead to the same issue, then it is almost certainly a misspecification of the model issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 12:51:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-The-final-Hessian-matrix-is-full-rank-but-has-at-least/m-p/753491#M36658</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-07-12T12:51:57Z</dc:date>
    </item>
  </channel>
</rss>

