How to constrain some correlations to 0?

I have posted some code / ideas that will let you do this in a few different threads, the best overview probably starts here: Partial-pooling of correlation (or covariance) matrices? - #4 by BenH
To fix the correlation to zero you just need to ensure the relevant value of the vector you pass in to the constraincorsqrt function is zero.

2 Likes