Dear mailinglist,
I am trying to use iidkd to estimate a correlation matrix for data with a negative binomial distribution. To achieve this I tried adapting the example code that is at the end of the iidkd pdf file as par of the inla documentation. In the attached html file (generated from the attached Rmd file), I try to generate example data that is correlated with negative binomial distribution. It seems that the model is able to estimate the size parameter for the distribution, but fails to estimate correlation in the data.
I wonder if I am doing anything wrong in the setup of the model, or if there is any way of improving the estimations of the correlation matrix for this kind of data.
Kind regards,
Jan Jaap Poos