<?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: An Error Encoutered in SAS IML for NLPNRA subroutine in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/An-Error-Encoutered-in-SAS-IML-for-NLPNRA-subroutine/m-p/159758#M1470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error is that you should not use a print statement in an NLP subroutine.&lt;/P&gt;&lt;P&gt;Delete the PRINT statements and you should get a result.&lt;/P&gt;&lt;P&gt;For more on maximum likelihood estimates in IML, see&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Feb 2014 15:35:00 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2014-02-03T15:35:00Z</dc:date>
    <item>
      <title>An Error Encoutered in SAS IML for NLPNRA subroutine</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/An-Error-Encoutered-in-SAS-IML-for-NLPNRA-subroutine/m-p/159757#M1469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;I am new in IML computing system and have received the following ERROR (at the end of the code) after submitting the following PROC IML program calling NLPNRA subroutine. Did I make any mistake in the program code. Thank you in advance for your generous assistance in this regard. Mohammad&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; PROC IML;&lt;/P&gt;&lt;P&gt;NOTE: IML Ready&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp; *y&amp;nbsp; age&amp;nbsp; female;&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp; data={1 23 1, 1 20 0, 0 18 0, 1 20 1, 0 25 1, 0 22 0, 0 20 1,&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 24 0, 1 20 1, 0 19 0, 0 20 1, 0 24 1, 0 22 1, 0 19 1, 1 20 0};&lt;/P&gt;&lt;P&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp; print data;&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;7&amp;nbsp;&amp;nbsp;&amp;nbsp; y = data[,1];&lt;/P&gt;&lt;P&gt;8&amp;nbsp;&amp;nbsp;&amp;nbsp; n = nrow(data);&lt;/P&gt;&lt;P&gt;9&amp;nbsp;&amp;nbsp;&amp;nbsp; x = repeat(1,n,1)||data[,2:3];&lt;/P&gt;&lt;P&gt;10&amp;nbsp;&amp;nbsp; print n y x;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;11&amp;nbsp;&amp;nbsp; start logLik(B0) global(y,x);&lt;/P&gt;&lt;P&gt;12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; beta = j(3,1,0);&lt;/P&gt;&lt;P&gt;13&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print beta;&lt;/P&gt;&lt;P&gt;14&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; beta = B0`;&lt;/P&gt;&lt;P&gt;15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print beta;&lt;/P&gt;&lt;P&gt;16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; z=x*beta;&lt;/P&gt;&lt;P&gt;17&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print z beta;&lt;/P&gt;&lt;P&gt;18&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p=1/(1+exp(-z));&lt;/P&gt;&lt;P&gt;18 !&amp;nbsp;&amp;nbsp; /* distribution function (f) and density (p) */&lt;/P&gt;&lt;P&gt;19&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f=p#p#exp(-z);&lt;/P&gt;&lt;P&gt;20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print p f;&lt;/P&gt;&lt;P&gt;21&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logL = sum((y=1)#log(p) + (y=0)#log(1-p));&lt;/P&gt;&lt;P&gt;22&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print logL&amp;nbsp; beta;&lt;/P&gt;&lt;P&gt;23&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ( logL );&lt;/P&gt;&lt;P&gt;24&amp;nbsp;&amp;nbsp; finish;&lt;/P&gt;&lt;P&gt;NOTE: Module LOGLIK defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;25&amp;nbsp;&amp;nbsp; B0=j(1,3,0.01);&lt;/P&gt;&lt;P&gt;26&amp;nbsp;&amp;nbsp; print B0;&lt;/P&gt;&lt;P&gt;27&amp;nbsp;&amp;nbsp; opt ={1,4};&lt;/P&gt;&lt;P&gt;28&amp;nbsp;&amp;nbsp; call nlpnra(rc, xres, "LogLik",B0,opt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;ERROR:&amp;nbsp; An exception has been encountered&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;Please contact technical support and provide them with the following traceback information:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;The SAS task name is [IML]&lt;/P&gt;&lt;P&gt;ERROR:&amp;nbsp; Read Access Violation IML&lt;/P&gt;&lt;P&gt;Exception occurred at (044D7C31)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;Task Traceback&lt;/P&gt;&lt;P&gt;Address&amp;nbsp;&amp;nbsp; Frame&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (DBGHELP API Version 4.0 rev 5)&lt;/P&gt;&lt;P&gt;00000000044D7C31&amp;nbsp; 0000000009CCC820&amp;nbsp; saswob:tkvercn1+0x6BF1&lt;/P&gt;&lt;P&gt;00000000074A9828&amp;nbsp; 0000000009CCC828&amp;nbsp; sasoda:tkvercn1+0x287E8&lt;/P&gt;&lt;P&gt;00000000074A2E93&amp;nbsp; 0000000009CCC8D0&amp;nbsp; sasoda:tkvercn1+0x21E53&lt;/P&gt;&lt;P&gt;0000000007490537&amp;nbsp; 0000000009CCC960&amp;nbsp; sasoda:tkvercn1+0xF4F7&lt;/P&gt;&lt;P&gt;000000000A1EDC07&amp;nbsp; 0000000009CCC968&amp;nbsp; sasmrk:tkvercn1+0x7CBC7&lt;/P&gt;&lt;P&gt;000000000749031C&amp;nbsp; 0000000009CCCE80&amp;nbsp; sasoda:tkvercn1+0xF2DC&lt;/P&gt;&lt;P&gt;00000000060D7C58&amp;nbsp; 0000000009CCCE88&amp;nbsp; sasods:tkvercn1+0x186C18&lt;/P&gt;&lt;P&gt;0000000005F82628&amp;nbsp; 0000000009CCD0E0&amp;nbsp; sasods:tkvercn1+0x315E8&lt;/P&gt;&lt;P&gt;0000000005F81EA9&amp;nbsp; 0000000009CCD1E0&amp;nbsp; sasods:tkvercn1+0x30E69&lt;/P&gt;&lt;P&gt;000000000CEBDD58&amp;nbsp; 0000000009CCD1E8&amp;nbsp; sasinlp:tkvercn1+0xECD18&lt;/P&gt;&lt;P&gt;000000000CE187AE&amp;nbsp; 0000000009CCDEE0&amp;nbsp; sasinlp:tkvercn1+0x4776E&lt;/P&gt;&lt;P&gt;000000000CE1765F&amp;nbsp; 0000000009CCDFF0&amp;nbsp; sasinlp:tkvercn1+0x4661F&lt;/P&gt;&lt;P&gt;000000000CDE144D&amp;nbsp; 0000000009CCE060&amp;nbsp; sasinlp:tkvercn1+0x1040D&lt;/P&gt;&lt;P&gt;000000000CE91178&amp;nbsp; 0000000009CCE2E0&amp;nbsp; sasinlp:tkvercn1+0xC0138&lt;/P&gt;&lt;P&gt;000000000CDF683A&amp;nbsp; 0000000009CCE3D0&amp;nbsp; sasinlp:tkvercn1+0x257FA&lt;/P&gt;&lt;P&gt;000000000CDDC249&amp;nbsp; 0000000009CCF500&amp;nbsp; sasinlp:tkvercn1+0xB209&lt;/P&gt;&lt;P&gt;000000000CDDC891&amp;nbsp; 0000000009CCF530&amp;nbsp; sasinlp:tkvercn1+0xB851&lt;/P&gt;&lt;P&gt;0000000007E212B4&amp;nbsp; 0000000009CCF538&amp;nbsp; sasxfnc:tkvercn1+0x274&lt;/P&gt;&lt;P&gt;0000000009AFD163&amp;nbsp; 0000000009CCF5D8&amp;nbsp; sasiml:tkvercn1+0xC123&lt;/P&gt;&lt;P&gt;0000000009AF260F&amp;nbsp; 0000000009CCFB20&amp;nbsp; sasiml:tkvercn1+0x15CF&lt;/P&gt;&lt;P&gt;0000000009AF4241&amp;nbsp; 0000000009CCFC50&amp;nbsp; sasiml:tkvercn1+0x3201&lt;/P&gt;&lt;P&gt;0000000009AF12F7&amp;nbsp; 0000000009CCFCB0&amp;nbsp; sasiml:tkvercn1+0x2B7&lt;/P&gt;&lt;P&gt;0000000003418FD7&amp;nbsp; 0000000009CCFCB8&amp;nbsp; sashost:Main+0xF917&lt;/P&gt;&lt;P&gt;000000000341D5FD&amp;nbsp; 0000000009CCFF50&amp;nbsp; sashost:Main+0x13F3D&lt;/P&gt;&lt;P&gt;00000000775A652D&amp;nbsp; 0000000009CCFF58&amp;nbsp; kernel32:BaseThreadInitThunk+0xD&lt;/P&gt;&lt;P&gt;00000000777DC541&amp;nbsp; 0000000009CCFF88&amp;nbsp; ntdll:RtlUserThreadStart+0x21&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;ERROR:&amp;nbsp; An exception has been encountered.&lt;/P&gt;&lt;P&gt;Please contact technical support and provide them with the following traceback information:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;The SAS task name is [IML]&lt;/P&gt;&lt;P&gt;ERROR:&amp;nbsp; Read Access Violation IML&lt;/P&gt;&lt;P&gt;Exception occurred at (044D7C31)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE IML used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1:06.22&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.67 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 21:25:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/An-Error-Encoutered-in-SAS-IML-for-NLPNRA-subroutine/m-p/159757#M1469</guid>
      <dc:creator>MoshiurRahman</dc:creator>
      <dc:date>2014-02-02T21:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: An Error Encoutered in SAS IML for NLPNRA subroutine</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/An-Error-Encoutered-in-SAS-IML-for-NLPNRA-subroutine/m-p/159758#M1470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error is that you should not use a print statement in an NLP subroutine.&lt;/P&gt;&lt;P&gt;Delete the PRINT statements and you should get a result.&lt;/P&gt;&lt;P&gt;For more on maximum likelihood estimates in IML, see&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 15:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/An-Error-Encoutered-in-SAS-IML-for-NLPNRA-subroutine/m-p/159758#M1470</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2014-02-03T15:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: An Error Encoutered in SAS IML for NLPNRA subroutine</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/An-Error-Encoutered-in-SAS-IML-for-NLPNRA-subroutine/m-p/159759#M1471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very many thanks, Dr. Wicklin. You are correct that opt[2]= does not allow the print command in NLPNRA subroutine as it invokes printing based on the value on opt[2]= (say, 4 in this case). Print statement and opt[2] argument contradict each other and this makes SAS system un-operational (as a result we have to re-start the SAS session). I think this is a technical issue SAS will take care about the matter in future.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 18:14:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/An-Error-Encoutered-in-SAS-IML-for-NLPNRA-subroutine/m-p/159759#M1471</guid>
      <dc:creator>MoshiurRahman</dc:creator>
      <dc:date>2014-02-03T18:14:41Z</dc:date>
    </item>
  </channel>
</rss>

