Like posterior_Sigma but converts each posterior covariance
draw to a correlation matrix before summarising.
Usage
posterior_cor(fit, x, summary = c("median", "mean", "none"))Arguments
- fit
A fitted
"bcaia"object frombcaia.- x
A numeric covariance-covariate vector of length
Pcov(matching the columns ofXcov, including the intercept).- summary
One of
"median"(default),"mean", or"none". With"none"the fullJ x J x nsamparray of posterior draws is returned.