Hi everyone,
I am working on a simulation study by using R-INLA to estimate fixed effects and hyperparameters in a bivariate joint model of longitudinal outcomes and terminal event, where I assume the longitudinal outcomes follows a zero-inflated negative binomial distribution with offset term and the baseline hazard function for terminal event follows weibull distribution. They also share two random effects, where Y and Z represent the subject-specific and family-specifc random effects respectively.
My question is that I constructed the single variate models for terminal event and longitudinal outcomes separately, and they worked well on generating parameter estimates. However, when I combine them into a bivariate joint model, the parameter estimates are very imprecise. I tried to add some control.inla options to fixe it, such as adding "cmin=0", "tolerance=1e-20", or "h=1e-08", but they all failed.
I have attached the R code about the simulation study for this bivariate joint model, and I will be very grateful if you can give me some suggestions about how to revise the code and generate accurate results.
Thank you very much.
Regards,
Lucas