<?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: Prevent proc glimmix  from &amp;quot;Termination due to Floating Point Exception&amp;quot; during by-pro in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Prevent-proc-glimmix-from-quot-Termination-due-to-Floating-Point/m-p/297814#M15855</link>
    <description>&lt;P&gt;Would it make sense to replace the ESTIMATE statements with LSMESTIMATE statements?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LSMESTIMATE predictor 'Predictor=0' 1 0/ilink cl;&lt;/P&gt;
&lt;P&gt;LSMESTIMATE predictor 'Predictor=1' 0 1/ilink cl;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or move to LSMEANS, and use the ODDS and ODDSRATIO options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2016 17:34:11 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2016-09-12T17:34:11Z</dc:date>
    <item>
      <title>Prevent proc glimmix  from "Termination due to Floating Point Exception" during by-processing</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Prevent-proc-glimmix-from-quot-Termination-due-to-Floating-Point/m-p/297584#M15840</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I run the following macro, I sometimes encounter the error "Termination due to Floating Point Exception".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;%macro mult (dsin=,sc=);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ods output ParameterEstimates=pe_sc&amp;amp;sc. estimates=est_sc&amp;amp;sc.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;proc glimmix data=&amp;amp;dsin method= laplace;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;by study;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;class response predictor patient; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;model response= predictor/ dist=multinomial link=glogit s cl;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;random predictor&amp;nbsp; /sub=patient group=response G type= Chol; &amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;nloptions maxiter=5000 tech=quanew;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;parms / lowerb=1e-4,.,1e-4,1e-4,., 1e-4;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;freq count; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;estimate "Predictor=0" intercept 1 predictor 1 0 / cl ilink bycat;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;estimate "Predictor=1" intercept 1 predictor 0 1 / cl ilink bycat;&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%mend mult;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The procedure converges for the respecitve cases, however, as one estimate for the predictor is 0, the estimate-statement causes the termination. Without "&lt;FONT face="courier new,courier"&gt;estimate "Predictor=0" intercept 1 predictor 1 0 / cl ilink bycat;estimate "Predictor=1" intercept 1 predictor 0 1 / cl ilink bycat;" &lt;/FONT&gt;, the procedure continues with the next by-group (=study) without any problems. Because I need the macro to go through every by-group, my question is:&amp;nbsp; Is there any chance to add a condition in the macro that only executes the estimate statement if the estimates are non-zero and writes missing values into the ods estimates-table otherwise? If not, how could I catch the termination error as variable and continue with the next by-group?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance, M&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2016 07:43:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Prevent-proc-glimmix-from-quot-Termination-due-to-Floating-Point/m-p/297584#M15840</guid>
      <dc:creator>Maya1</dc:creator>
      <dc:date>2016-09-11T07:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent proc glimmix  from "Termination due to Floating Point Exception" during by-pro</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Prevent-proc-glimmix-from-quot-Termination-due-to-Floating-Point/m-p/297814#M15855</link>
      <description>&lt;P&gt;Would it make sense to replace the ESTIMATE statements with LSMESTIMATE statements?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LSMESTIMATE predictor 'Predictor=0' 1 0/ilink cl;&lt;/P&gt;
&lt;P&gt;LSMESTIMATE predictor 'Predictor=1' 0 1/ilink cl;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or move to LSMEANS, and use the ODDS and ODDSRATIO options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 17:34:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Prevent-proc-glimmix-from-quot-Termination-due-to-Floating-Point/m-p/297814#M15855</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-09-12T17:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent proc glimmix  from "Termination due to Floating Point Exception" during by-pro</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Prevent-proc-glimmix-from-quot-Termination-due-to-Floating-Point/m-p/298102#M15868</link>
      <description>&lt;P&gt;Thank you for your time, Mr Denham. Unfortunately, least square means are not available for dist=mult in proc glimmix. So neither lsmeans nor lsmestimate works. Odds ratios are also not an option in my case. Is there any possibility to "catch" the estimate for the predictor if it is zero before the estimate-statement is executed? In which system variable could I possibly find this error and with which value?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again + regards,&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 17:24:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Prevent-proc-glimmix-from-quot-Termination-due-to-Floating-Point/m-p/298102#M15868</guid>
      <dc:creator>Maya1</dc:creator>
      <dc:date>2016-09-13T17:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent proc glimmix  from "Termination due to Floating Point Exception" during by-pro</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Prevent-proc-glimmix-from-quot-Termination-due-to-Floating-Point/m-p/298184#M15875</link>
      <description>&lt;P&gt;I can't think of any tricks to flag results within a glimmix run to decide whether or not to execute estimate statements within the &lt;EM&gt;same&lt;/EM&gt; run. I can think of an alternative, but I don't have the time to write out the needed code. You would take out all your estimate statements, and put your results in an item store (using the STORE statement within glimmix). You would also save other results using ODS OUTPUT statements or the OUTPUT statement, such as the predicted values. In a DATA step, you would identify whether the prediction (or whatever) was 0 or not.&amp;nbsp; If not 0, you would then run PROC PLM (with RESTORE statement to get results from glimmix), which would have the needed estimate statements. If prediction was 0, you could then execute a different PROC PLM with estimate statements that would work.&amp;nbsp; The main programming work would be done within a DATA step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know this is just a general suggestion, but it allows you to selectively use estimate statements based on certain results from a model fit.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2016 00:26:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Prevent-proc-glimmix-from-quot-Termination-due-to-Floating-Point/m-p/298184#M15875</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2016-09-14T00:26:11Z</dc:date>
    </item>
  </channel>
</rss>

