Hello , when I run the following macro, I sometimes encounter the error "Termination due to Floating Point Exception". %macro mult (dsin=,sc=); ods output ParameterEstimates=pe_sc&sc. estimates=est_sc&sc. proc glimmix data=&dsin method= laplace; by study; class response predictor patient; model response= predictor/ dist=multinomial link=glogit s cl; random predictor /sub=patient group=response G type= Chol; nloptions maxiter=5000 tech=quanew; parms / lowerb=1e-4,.,1e-4,1e-4,., 1e-4; freq count; estimate "Predictor=0" intercept 1 predictor 1 0 / cl ilink bycat; estimate "Predictor=1" intercept 1 predictor 0 1 / cl ilink bycat; run; %mend mult; The procedure converges for the respecitve cases, however, as one estimate for the predictor is 0, the estimate-statement causes the termination. Without "estimate "Predictor=0" intercept 1 predictor 1 0 / cl ilink bycat;estimate "Predictor=1" intercept 1 predictor 0 1 / cl ilink bycat;" , 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: 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? Thanks in advance, M
... View more