dim_corr {IRTM} | R Documentation |
learned correlations
Description
Takes as input either the Sigma covariance matrix, if the user has learned the factor covariance, or the Omega covariance matrix, if the user has learned the loading covariance, as well as a vector of dimension names. Returns a correlation matrix with correlations between the dimensions.
Usage
dim_corr(cov_array, dim_names = NULL)
Arguments
cov_array |
An array of dimension (d x d x nsamp/thin) containing posterior samples of the relevant covariance matrix. |
dim_names |
Vector of dimension names. |
Value
A data frame containing the correlation matrix derived from t input covariance array, with rows and columns labeled according to dim_names (if provided). Each cell represents the correlation between the corresponding dimensions.
[Package IRTM version 0.0.1.1 Index]