Hi,
I realize that set.seed() doesn't work as expect when I fit a model with INLA, for example:
set.seed(1)
fit0<-inla(n ~ 1 +offset(log(popsize))+f(ID.NIS, model = "besag",graph=W2),
data = data.spa,
family = "poisson",
control.predictor = list(compute = TRUE),
control.compute = list(dic = TRUE,waic=TRUE))
Then, I need to take fit0$summary.fitted.values$mean for further analysis with random forest. But each time I re-run the model, the fitted values slighly change and even thought the difference is extremely small, it leads to slightly different variable importance plot from random forest (I have set seed for random forest).
Is there any way we can deal with seed in INLA to make results reproducible?
Many thanks in advance.
Best regards,
Hanh.