INLA Keeps crashing

50 views
Skip to first unread message

richard baidoo

unread,
Feb 28, 2023, 11:23:09 PM2/28/23
to R-inla discussion group
Below is the code I run:

## Without interactions
count_total_gv ~ gini + urban + minority + medianincome + married + poverty + unemployed  + collegegrads +  gunlawT +  elevation + latitude + longitude+  urban*collegegrads + medianincome*poverty +
  f(FIPS_id, model="besag",graph="C:/Users/baido/Desktop/Grad School/SPRING 2023/STAT 5915/Shooting/Data/nc2.adj")+ #county-level spatial effects
  f(state, model="iid") #state-level random effects

poismod.inla_no_int = inla(formula_new, data=data_tomodel,quantiles = c(0.0025, 0.025, 0.5, 0.975, 0.9975), offset=log(pop/10000),
                      family = "zeroinflatedpoisson1",control.predictor = list(compute = TRUE),verbose = TRUE,keep = TRUE)

However, I keep getting this error message:


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.

Reply all
Reply to author
Forward
0 new messages