Bayesian spatiotemporal model

18 views
Skip to first unread message

Ebenezer Ogunsakin

unread,
12:23 PM (6 hours ago) 12:23 PM
to R-inla discussion group
Hi all, 

I currently am new to INLA and am trying to run a Bayesian model but am trying to figure out this error.
*** 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.

Below is my code that gives the above error
result1  = inla(formula1,family="poisson",data=data,E=eL,control.compute=list(dic=TRUE,cpo=TRUE))
result1$dic$dic;result1$dic$p.eff
UH<-result1$summary.random$region[,2]
summary(result1)

Kai

unread,
12:38 PM (6 hours ago) 12:38 PM
to R-inla discussion group
Hi  Ebenezer,

I am also a beginner. I've encounter same error before, until I found that there were many unexpected missing value in my random effect variable (the spatial id). 
So I would recommend checking the missingness of the covariates in your formula1 again.

And I know it would be helpful if you add verbose=TRUE while running your model - this can help debug.
Good luck.
Kai

Ebenezer Ogunsakin

unread,
2:11 PM (4 hours ago) 2:11 PM
to R-inla discussion group
Thanks for your response, Kai.

I have used verbose=TRUE, before sending this comment. It wasn't working. Also, no missingness in the covariates.

Reply all
Reply to author
Forward
0 new messages