Hello Dear all,
I was trying to fit a model using INLA for spatial analysis here is my sample code
# Define the formula
formula <- cases_mu + death_mu ~ 1 + f(idarea, model = "besag", graph = ALB.graph) + f(idarea1, model = "iid")
### Fit the model using INLA
mod <- inla(
formula = formula,
family = "poisson",
data = df_Covid,E=E,
control.compute=list(dic=TRUE))
when I run the code to fit the model I got error las follows:
Error in inla.inlaprogram.has.crashed() :
The inla-program exited with an error. Unless you interupted it yourself, please rerun with verbose=TRUE and check the output carefully.
If this does not help, please contact the developers at <he...@r-inla.org>.
*** inla.core.safe: inla.program has crashed: rerun to get better initial values. try=1/2
Error in inla.inlaprogram.has.crashed() :
The inla-program exited with an error. Unless you interupted it yourself, please rerun with verbose=TRUE and check the output carefully.
If this does not help, please contact the developers at <he...@r-inla.org>.
*** inla.core.safe: inla.program has crashed: rerun to get better initial values. try=2/2
Error in inla.inlaprogram.has.crashed() :
The inla-program exited with an error. Unless you interupted it yourself, please rerun with verbose=TRUE and check the output carefully.
If this does not help, please contact the developers at <he...@r-inla.org>.
Error in inla.core.safe(formula = formula, family = family, contrasts = contrasts, :
*** Fail to get good enough initial values. Maybe it is due to something else.