Hello, I'm fitting a spatial binomial model using INLA and consistently getting the following warnings:
```
***[1] warning *** iterative process seems to diverge, 'vb.correction' is aborted
*** Please (re-)consider your model, priors, confounding, etc.
***[3] warning *** iterative process seems to diverge, 'vb.correction' is aborted
*** Please (re-)consider your model, priors, confounding, etc.
```
What exactly does the VB correction failure mean in practical terms? and are there specific model adjustments I should consider (different priors, mesh refinement, etc.)?
The model produces sensible posterior distributions and reasonable spatial predictions, but I want to ensure I'm not missing potential issues with model fit or inference quality.
Code:
``
spde <- inla.spde2.pcmatern(
mesh = mesh,
alpha = 2,
prior.range = c(r0, .01),
prior.sigma = c(1, .01)
)
stk.e1 <- inla.stack(
tag = 'point',
data = list(y = dm2$n, numtrials = dm2$N),
A = list(A, 1, 1),
effects = list(
s = indexs,
rr = 1:length(dm2$improved_water),
b0 = rep(1, nrow(dm2))
)
)
stk.p1 <- inla.stack(
tag = "pred",
data = list(y = NA, numtrials = NA),
A = list(Ap, 1, 1),
effects = list(
s = indexs,
rr = (length(pred$improved_water) + 1):(length(pred$improved_water) + nrow(pred)),
b0 = rep(1, nrow(pred))
)
)
stk.full <- inla.stack(stk.e1, stk.p1)
# Binomial model
binomial_nn <- inla(
formula = y ~ 0 + b0 + f(s, model = spde),
family = "binomial",
Ntrials = numtrials,
data = inla.stack.data(stk.full),
control.family = control.family(link = 'logit'),
control.predictor = list(
compute = TRUE,
link = 1,
A = inla.stack.A(stk.full)
),
control.fixed = list(mean = 0, prec = 1),
control.compute = list(config = TRUE, return.marginals.predictor = TRUE, cpo = T, waic = T, dic = T),
num.threads
= 7,
verbose = F
)`
```