dim_corr: learned correlations

View source: R/helpers_analysis.R

dim_corrR 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.


IRTM documentation built on June 8, 2025, 10:46 a.m.