cor.rec {recmetrics} | R Documentation |
Compute relative excess correlation (REC) matrix among variables in supplied data.
cor.rec(data, na.rm = TRUE)
data |
A data.frame or tibble |
na.rm |
logical (defaults to TRUE) |
A numeric matrix of correlations among variable residuals.
# Use the SCWB data example
data(SCWB)
cor.rec(SCWB[, 1:20])