"Inla program failed" error with competing risks model

9 views
Skip to first unread message

Drew N

unread,
Oct 10, 2025, 5:32:06 PM (3 days ago) Oct 10
to R-inla discussion group
Hi All,

I'd appreciate help with troubleshooting fitting a competing risks model. I've attached the data, where readmission1 = event for readmission, death2 = event for death, and readdeath_time = time to event and sexo is a covariate. 

Here is my model specification: 
compreaddeathmod<-joint(formSurv=list(inla.surv(time=readdeath_time,event=readmission1)~sexo,inla.surv(time=readdeath_time,event=death2)~sexo),basRisk=rep("weibullsurv",2),dataSurv=dat,control=list(priorFixed=list(mean=0,prec=(1/((log(5)/1.96)^2)))))
summary(compreaddeathmod)

The error I receive is: 
*** inla.core.safe: The inla program failed, but will rerun in case better initial values may help. try=1/1 Error in inla.core.safe(formula = formula, family = family, contrasts = contrasts, : The inla program call crashed. The inla program failed and the maximum number of tries has been reached.

Thank you in advance! 

Best,
Drew
dat.csv

Denis Rustand

unread,
Oct 10, 2025, 6:23:59 PM (3 days ago) Oct 10
to R-inla discussion group
Hi Drew,

I can see some exact zeros in your outcome, which is not compatible with the Weibull distribution.

Best,
Denis Rustand

Drew N

unread,
Oct 10, 2025, 7:31:57 PM (3 days ago) Oct 10
to R-inla discussion group
Thank you so much Denis. Silly me!
Reply all
Reply to author
Forward
0 new messages