Hi all
I am trying to set up a hierarchical model. My model needs to sample the site-specific mean and covariance between two variables at N different sites, while the mean and covariance also adhere to the global pattern between sites.
I am using the LKJ prior to sample the covariance matrix per site. However, the hyperparameter of the LKJ prior, eta, is only used to define the shape of the marginal distribution of Ri,j, which is always centered around 0 (R is the correlation matrix between my two variables). How can I implement a global hyperparameter, so that the center of the marginal distribution of Ri,j changes, according to the pattern met across sites?
Maybe you actually want a spatial/GP type model where the cov matrix is informed by the distances between the sites.
eg https://mc-stan.org/events/stancon2017-notebooks/stancon2017-trangucci-hierarchical-gps.pdf
Thanks a lot for your response. Unfortnately, I dont see how the GP can be applied in my problem. Essentially, what I need is an LKJ prior that is informative on the centering of the distribution of correlation coefficients in the range of [-1,1].
But note also that I recently found it can have multimodality issues in higher dim cases and haven’t found a solution :/
Thank you for your responses.
Following your suggestions, I found this: Hierarchical prior (for partial pooling) on correlation matrices? - #9 by bgoodri
I believe that this is the best way forward, even though it can be quite time consuming ( I am sampling a 5x5 covariance matrix per unit, and I have 10-200 units).
Take a look at my explorations of multivariate normal and an alternative here. I wonder if it could make sense for your application to abandon modelling the correlation matrix as a whole hierarchically, but nonetheless model each individual correlation hierarchically (presumably on the Fisher’s-Z scale).