Learn R Programming

EGAnet (version 2.0.7)

totalCorMat: Total Correlation Matrix

Description

Computes the pairwise total correlation (totalCor) for a dataset

Usage

totalCorMat(data, base = 2.718282, normalized = FALSE)

Value

Returns a symmetric matrix with pairwise total correlations

Arguments

data

Matrix or data frame. Should consist only of variables to be used in the analysis

base

Numeric (length = 1). Base to use for entropy. Defaults to exp(1) or 2.718282

normalized

Boolean (length = 1). Should the normalized total correlation be computed? Defaults to FALSE

Author

Hudson F. Golino <hfg9s at virginia.edu>

References

Formalization of total correlation
Watanabe, S. (1960). Information theoretical analysis of multivariate correlation. IBM Journal of Research and Development 4, 66-82.

Applied implementation
Felix, L. M., Mansur-Alves, M., Teles, M., Jamison, L., & Golino, H. (2021). Longitudinal impact and effects of booster sessions in a cognitive training program for healthy older adults. Archives of Gerontology and Geriatrics, 94, 104337.

Examples

Run this code
# Compute total correlation matrix
totalCorMat(wmt2[,7:24])

Run the code above in your browser using DataLab