BookmarkSubscribeRSS Feed
rangisil
Calcite | Level 5

Hi,

I'm trying to fit a Bayesian Piecewise Exponential model using PROC PHREG. But, I'm getting the error below. Can someone please guide me to solve this error.

My code and details of the data are at the end. Let me know if you need more info. about the data. Thanks.w

NOTE: Convergence criterion (GCONV=1E-8) satisfied.

ERROR: Floating Point Zero Divide.

ERROR: Termination due to Floating Point Exception

NOTE: The SAS System stopped processing this step because of errors.

Code:

PROC PHREG data=lib.sample;

class X1 X2 X3 ;

model TIME_mon*status(0)=X1 X2 X3 X4 X5 X6 ;

bayes nbi=1000 nmc=10000 thinning=5 seed=1980 plots=all

coeffprior= uniform piecewise=hazard (ninterval=4);

run;

X1, X2, X3  are categorical variables and X4, X5, X6 are continuous variables. TIME_mon is survival time in months (discrete). It's right censored data.

1 REPLY 1
SteveDenham
Jade | Level 19

This is really flailing in the dark, but do you have any "pathological" data points?  Something in one of the classes that doesn't fit piecewise could do this.  The piecewise function doesn't have to be differentiable at the join point, but it does have to be continuous.  If for some level of one of the categorical variables, the continuous variable shifts dramatically, this collinearity could cause this jump.  It sounds almost like a quasi-separation problem in logistic regression, for some reason.

Setve Denham

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 957 views
  • 0 likes
  • 2 in conversation