Hello!
I am new to INLA and Bayesian statistics. I'm trying to build up a model. Please let me know if I should provide more information or be more specific!
Right now, I'm trying to fit a model with only age, sex, and year random effects. Then I will add covariates. In the data, there are 2 sexes, 14 age bins and 21 years. There are 51 observations for each age-sex-year combinations (50 US states + DC). To make it faster to experiment with, I took a sample of the data so it has about 3500 observations. I want age groups to be correlated.
form <- y ~ f(as.integer(year), model = "ar1", replicate = as.factor(sex), group = as.integer(age), control.group = list(model = "rw1"))
mod_obj <- inla(formula = form, family = "gaussian", data = dt_sample, control.predictor = list(compute = FALSE, link = 1), control.inla = list(int.strategy = "eb"), control.compute = list(config = FALSE, waic = TRUE), verbose = TRUE)
In the output of the model bove, I get a lot of messages like:
file: smtp-taucs.c 1f6a39183ef43d8ef33f10ff3f04fd13f8432758 - Mon Feb 22 21:27:50 2021 +0300
Function: GMRFLib_factorise_sparse_matrix_TAUCS(), Line: 872, Thread: 0
Fail to factorize Q. I will try to fix it...
It seems I'm poorly specifying the model. Is there some way I could combine age, sex and year or should I break them up?
Thanks so much,
Amal