<?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: Invalid Operation. ERROR: Termination due to Floating Point Exception in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Invalid-Operation-ERROR-Termination-due-to-Floating-Point/m-p/639448#M30598</link>
    <description>&lt;P&gt;I would open a ticket with SAS Tech Support for this one. You can reach them through email (&lt;A href="mailto:support@sas.com" target="_blank"&gt;support@sas.com&lt;/A&gt;) or through the web (support.sas.com). Better to use those methods than the phone for a complicated problem like this ...&lt;/P&gt;</description>
    <pubDate>Mon, 13 Apr 2020 12:59:13 GMT</pubDate>
    <dc:creator>StatsMan</dc:creator>
    <dc:date>2020-04-13T12:59:13Z</dc:date>
    <item>
      <title>ERROR: Invalid Operation. ERROR: Termination due to Floating Point Exception</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Invalid-Operation-ERROR-Termination-due-to-Floating-Point/m-p/639424#M30597</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am running on a 64-bit version of SAS 9.4 from a remote system.&amp;nbsp;&lt;/SPAN&gt;I received&amp;nbsp;these error messages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Invalid Operation.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Termination due to Floating Point Exception&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when trying to run the code below in 1000 simulation and after about 50 run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc nlmixed data=analysis_&amp;amp;sim ;&lt;BR /&gt;parms a0=0 a1=0 a2=0 b0=0 b1=0 b2=0 tau=0 sigma=1 sigma1=1 sigma2=1 nu=1;&lt;BR /&gt;bounds sigma&amp;gt;0, sigma1&amp;gt;0, sigma2&amp;gt;0, nu&amp;gt;0;&lt;BR /&gt;eta_zero_m=a0+a1*x1+a2*x2+z1;&lt;BR /&gt;p_zero_m=exp(eta_zero_m)/(1+exp(eta_zero_m)); /* probability y &amp;gt; 0 */&lt;BR /&gt;eta_cont_m=b0+x1*b1+b2*x2+z2;&lt;BR /&gt;mu_cont_m=exp(eta_cont_m);&lt;BR /&gt;delta_cont=eta_cont_m - (sigma**2/2);&lt;BR /&gt;mu_cont_p=exp(delta_cont);&lt;BR /&gt;if y=0 then ll=log(p_zero_m);&lt;BR /&gt;else ll=log(1-p_zero_m)+log(y)*(mu_cont_p*(1+nu)-1)-(mu_cont_p*(1+nu)+nu+2)*log(1+y) lgamma(mu_cont_p*(1+nu))&lt;BR /&gt;-lgamma(nu+2)+lgamma(mu_cont_p*(1+nu)+nu+2);&lt;BR /&gt;model y~general(ll);&lt;BR /&gt;random z1 z2 ~ normal([0,0],[sigma1**2,tau*sigma1*sigma2,sigma2**2])&lt;BR /&gt;subject=idnum;&lt;BR /&gt;ods output ParameterEstimates=estTT_&amp;amp;sim ConvergenceStatus=ConvergTT_&amp;amp;sim FitStatistics=FitTT_&amp;amp;sim;&lt;BR /&gt;run;&lt;BR /&gt;data matrix_TT;&lt;BR /&gt;set estTT_:;&lt;BR /&gt;output;&lt;BR /&gt;data conv_TT;&lt;BR /&gt;set ConvergTT_:;&lt;BR /&gt;output;&lt;BR /&gt;data fit_TT;&lt;BR /&gt;set FitTT_:;&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 09:24:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Invalid-Operation-ERROR-Termination-due-to-Floating-Point/m-p/639424#M30597</guid>
      <dc:creator>mezerji</dc:creator>
      <dc:date>2020-04-13T09:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Invalid Operation. ERROR: Termination due to Floating Point Exception</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Invalid-Operation-ERROR-Termination-due-to-Floating-Point/m-p/639448#M30598</link>
      <description>&lt;P&gt;I would open a ticket with SAS Tech Support for this one. You can reach them through email (&lt;A href="mailto:support@sas.com" target="_blank"&gt;support@sas.com&lt;/A&gt;) or through the web (support.sas.com). Better to use those methods than the phone for a complicated problem like this ...&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 12:59:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Invalid-Operation-ERROR-Termination-due-to-Floating-Point/m-p/639448#M30598</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2020-04-13T12:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Invalid Operation. ERROR: Termination due to Floating Point Exception</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Invalid-Operation-ERROR-Termination-due-to-Floating-Point/m-p/639492#M30600</link>
      <description>&lt;P&gt;You can use&lt;/P&gt;
&lt;P&gt;%PUT &amp;amp;=SIM;&lt;/P&gt;
&lt;P&gt;inside the macro loop so that you can find out which simulated data set is failing. Then you can use a WHERE clause to&amp;nbsp; examine the data and try to run the PROC NLMIXED code just on that subset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One possibility is that either eta_zero_m or eta_cont_m is too large (greater than 709) so that EXP() overflows.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 15:21:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Invalid-Operation-ERROR-Termination-due-to-Floating-Point/m-p/639492#M30600</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-04-13T15:21:37Z</dc:date>
    </item>
  </channel>
</rss>

