<?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: error call nlpnra in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-call-nlpnra/m-p/118139#M910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what you are doing well enough to diagnose what is going wrong, but from the error messages I assume that the LINK variable is getting out of the open interval (0,1).&amp;nbsp; If you put in the line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; link = choose( link&amp;lt;=0 | link&amp;gt;=1, ., link);&lt;/P&gt;&lt;P&gt;then the algorithm converge.&amp;nbsp; Unless there is a theoretical reason why a quantity cannot be less than zero, it's a good programming practice to protect against taking log(negative_value).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Apr 2013 20:42:59 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2013-04-24T20:42:59Z</dc:date>
    <item>
      <title>error call nlpnra</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-call-nlpnra/m-p/118136#M907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on the Klein-Spady semiparametric estimator.&lt;/P&gt;&lt;P&gt;I am trying to use call NLPNRA to generate a maximum likelihood estimate. IML gives an ERROR message saying that I am taking log of zero. But I checked the arguments in all the log commands, none of them is zero.&lt;/P&gt;&lt;P&gt;Below is the program and the error message. Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: (execution) Invalid argument to function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;operation : LOG at line 296 column 45&lt;/P&gt;&lt;P&gt;operands&amp;nbsp; : _TEM1008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_TEM1008&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (numeric)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statement : ASSIGN at line 296 column 1&lt;/P&gt;&lt;P&gt;traceback : module LOGLIK at line 296 column 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: NEWRAP Optimization cannot be completed.&lt;/P&gt;&lt;P&gt;ERROR: The function value of the objective function cannot be computed at the starting point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 11:14:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-call-nlpnra/m-p/118136#M907</guid>
      <dc:creator>caracalla</dc:creator>
      <dc:date>2013-04-24T11:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: error call nlpnra</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-call-nlpnra/m-p/118137#M908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, look at the following article:&lt;A href="http://blogs.sas.com/content/iml/2011/10/12/maximum-likelihood-estimation-in-sasiml/" title="http://blogs.sas.com/content/iml/2011/10/12/maximum-likelihood-estimation-in-sasiml/"&gt; Maximum likelihood estimation in SAS/IML - The DO Loop&lt;/A&gt; &lt;BR /&gt;What are the meanings of your three parameters (for example, location, scale, or shape parameters). Are any of your parameters constrained? If so, see Step 2 in the article.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 13:52:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-call-nlpnra/m-p/118137#M908</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-04-24T13:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: error call nlpnra</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-call-nlpnra/m-p/118138#M909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's just a binary model, the parameters are not constraint and the initial values come from the proc logistic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the module computes the log likelihood so i don't understand the problem &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 16:43:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-call-nlpnra/m-p/118138#M909</guid>
      <dc:creator>caracalla</dc:creator>
      <dc:date>2013-04-24T16:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: error call nlpnra</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-call-nlpnra/m-p/118139#M910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what you are doing well enough to diagnose what is going wrong, but from the error messages I assume that the LINK variable is getting out of the open interval (0,1).&amp;nbsp; If you put in the line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; link = choose( link&amp;lt;=0 | link&amp;gt;=1, ., link);&lt;/P&gt;&lt;P&gt;then the algorithm converge.&amp;nbsp; Unless there is a theoretical reason why a quantity cannot be less than zero, it's a good programming practice to protect against taking log(negative_value).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 20:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-call-nlpnra/m-p/118139#M910</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-04-24T20:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: error call nlpnra</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-call-nlpnra/m-p/118140#M911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for this advice, it's work fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 20:58:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-call-nlpnra/m-p/118140#M911</guid>
      <dc:creator>caracalla</dc:creator>
      <dc:date>2013-04-24T20:58:12Z</dc:date>
    </item>
  </channel>
</rss>

