Cross Validated Asked by Sue Doh Nimh on December 11, 2020

I’m trying to estimate a correlation matrix for a model where I already have a sense of the values of the off-diagonals based on existing studies. I’m quite new to Bayesian analysis so trying to learn as I go along.

The Stan package is pretty bullish on using an LKJ prior for correlation matrices (see here). There isn’t a way for me to encode a specific expected value of the correlation matrix into the prior. From my understanding I could use the inverse Wishart to generate a covariance matrix instead, but that isn’t guaranteed to generate a correlation matrix (i.e. diagonal of 1).

Can anyone recommend the best approach here? If it’s useful at all I’m trying to recreate exactly this example, except specify my prior knowledge about the correlation matrix.

The Stan documentation and examples often use the LKJ prior in situations that are unlike the one you are describing where you are pretty sure about the off-diagonals.

In the case of a confirmatory factor analysis, I would do Wishart or inverse-Wishart on the covariance (not correlation) among the factors and fix some of the loadings to be $1.0$, rather than fixing the factor variances to be $1.0$.

Answered by Ben Goodrich on December 11, 2020

Get help from others!

Recent Questions

- How can I transform graph image into a tikzpicture LaTeX code?
- How Do I Get The Ifruit App Off Of Gta 5 / Grand Theft Auto 5
- Iv’e designed a space elevator using a series of lasers. do you know anybody i could submit the designs too that could manufacture the concept and put it to use
- Need help finding a book. Female OP protagonist, magic
- Why is the WWF pending games (“Your turn”) area replaced w/ a column of “Bonus & Reward”gift boxes?

Recent Answers

- Lex on Does Google Analytics track 404 page responses as valid page views?
- haakon.io on Why fry rice before boiling?
- Jon Church on Why fry rice before boiling?
- Peter Machado on Why fry rice before boiling?
- Joshua Engel on Why fry rice before boiling?

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP