<?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 in Proc NLIN: The (approximate) Hessian is singular in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-in-Proc-NLIN-The-approximate-Hessian-is-singular/m-p/136950#M7109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A singular hessian often means that the model is overspecified, but here I think it is because the broken stick model does not have continuous derivatives at the break point.&amp;nbsp; You may have to specify the derivatives (in DER. statements) to get around this.&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, 28 Jul 2014 15:20:32 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2014-07-28T15:20:32Z</dc:date>
    <item>
      <title>Problem in Proc NLIN: The (approximate) Hessian is singular</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-in-Proc-NLIN-The-approximate-Hessian-is-singular/m-p/136949#M7108</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;Hope I can find a solution for this! I am fitting models to my data mostly broken-line and curvilinear plateau by Proc NLIN procedure. In some models there is a note: Convergence criterion met but a note in the log indicates a possible problem with the model! But it makes the model and gives the estimates but then I have no Std error for my estimates and no 95% confidence limits! &lt;/P&gt;&lt;P&gt;In log I have: (I think my initial parameters are correct)&lt;/P&gt;&lt;P&gt;DER.L not initialized or missing. It will be computed automatically.&lt;/P&gt;&lt;P&gt;NOTE: DER.V not initialized or missing. It will be computed automatically.&lt;/P&gt;&lt;P&gt;NOTE: DER.R not initialized or missing. It will be computed automatically.&lt;/P&gt;&lt;P&gt;NOTE: PROC NLIN grid search time was&amp;nbsp; 0: 0: 0.&lt;/P&gt;&lt;P&gt;NOTE: Convergence criterion met.&lt;/P&gt;&lt;P&gt;NOTE: The (approximate) Hessian is singular.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.PPP has 507 observations and 3 variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in some models I have a very big 95% confidence limits which my papers reviewer ask why!?!?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea and comment??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My SAS syntax for model:&lt;/P&gt;&lt;P&gt;proc nlin data=one; *straight broken-line;&lt;/P&gt;&lt;P&gt;parameters L=0.70 U=-1.4 R=0.80;&lt;/P&gt;&lt;P&gt;z1=(x&amp;lt;R)*(R-x);&lt;/P&gt;&lt;P&gt;model y = L + U*(z1);&lt;/P&gt;&lt;P&gt;output out=ppp p=pred;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gplot;&lt;/P&gt;&lt;P&gt;title2 '2 linear broken lines';&lt;/P&gt;&lt;P&gt;goptions hpos=35 vpos=35 ftext=swiss;&lt;/P&gt;&lt;P&gt;symbol1 v=dot c=black;&lt;/P&gt;&lt;P&gt;symbol2 i=join v=none c=black;&lt;/P&gt;&lt;P&gt;plot y*x pred*x/overlay;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="159" style="width: 299px; height: 130px;" width="297"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="38" width="108"&gt;Parameter&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="66"&gt;Estimate&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="625"&gt;Approx&lt;BR /&gt; Std Error&lt;/TD&gt;&lt;TD class="xl68" colspan="2" style="border-left: none;" width="211"&gt;Approximate 95% Confidence&lt;BR /&gt; Limits&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19" style="border-top: none;"&gt;L&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;0.69&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;0.00949&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;0.6637&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;0.7163&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19" style="border-top: none;"&gt;U&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;-0.9&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;0.2324&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;-1.5452&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;-0.2548&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19" style="border-top: none;"&gt;R&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;0.8&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;.&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;.&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 11:28:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problem-in-Proc-NLIN-The-approximate-Hessian-is-singular/m-p/136949#M7108</guid>
      <dc:creator>ElhamAssadi</dc:creator>
      <dc:date>2014-07-25T11:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Proc NLIN: The (approximate) Hessian is singular</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-in-Proc-NLIN-The-approximate-Hessian-is-singular/m-p/136950#M7109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A singular hessian often means that the model is overspecified, but here I think it is because the broken stick model does not have continuous derivatives at the break point.&amp;nbsp; You may have to specify the derivatives (in DER. statements) to get around this.&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, 28 Jul 2014 15:20:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problem-in-Proc-NLIN-The-approximate-Hessian-is-singular/m-p/136950#M7109</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-28T15:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Proc NLIN: The (approximate) Hessian is singular</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-in-Proc-NLIN-The-approximate-Hessian-is-singular/m-p/136951#M7110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help. Just I have no DER. statement in my SAS syntax! do you mean initial parameters?&lt;/P&gt;&lt;P&gt;Also do you have any idea what is the reason to have quite large confidence limits?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 07:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problem-in-Proc-NLIN-The-approximate-Hessian-is-singular/m-p/136951#M7110</guid>
      <dc:creator>ElhamAssadi</dc:creator>
      <dc:date>2014-07-29T07:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Proc NLIN: The (approximate) Hessian is singular</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-in-Proc-NLIN-The-approximate-Hessian-is-singular/m-p/136952#M7111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I meant specifying the derivatives in a DER. statement.&amp;nbsp; But further thought makes that seem unreasonsable.&amp;nbsp; I fit the data in the documentation for Example 67.1 Segmented Model to a broken stick model, and found the same problem--Hessian is singular, huge standard error, and an indeterminate correlation matrix.&amp;nbsp; I think it has to do with a lack of smoothness in this model and that the second derivatives are not continuous.&amp;nbsp; I also tried using PROC MODEL and the results included a statement that the model was singular and the results were biased.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I looked at &lt;A href="http://www.ats.ucla.edu/stat/sas/faq/nlin_optimal_knots.htm"&gt;http://www.ats.ucla.edu/stat/sas/faq/nlin_optimal_knots.htm&lt;/A&gt;, and found what I think may be useful to you.&amp;nbsp; It worked on the sample data I tried, and the Hessian error message was no longer showing up.&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>Tue, 29 Jul 2014 12:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problem-in-Proc-NLIN-The-approximate-Hessian-is-singular/m-p/136952#M7111</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-29T12:18:55Z</dc:date>
    </item>
  </channel>
</rss>

