Compute ROI-by-ROI Representational Connectivity from Feature RSA Predictions
Source:R/feature_rsa_connectivity.R
feature_rsa_connectivity.RdForms an ROI x ROI similarity matrix by correlating lower-triangle predicted RDM vectors across ROIs. Sparsification, when requested, is applied only to the final ROI x ROI matrix and never to the per-ROI RDM vectors themselves.
Usage
feature_rsa_connectivity(
x,
method = c("spearman", "pearson"),
keep = 1,
absolute = FALSE,
use = "pairwise.complete.obs"
)Arguments
- x
Either a
regional_mvpa_resultproduced byfeature_rsa_model(..., return_rdm_vectors=TRUE)or the tibble returned byfeature_rsa_rdm_vectors().- method
Correlation method used across ROI RDM vectors, one of
"spearman"or"pearson".- keep
Proportion of ROI-ROI edges to retain after optional sparsification.
keep = 1disables sparsification. For example,keep = 0.1retains the top 10% of finite off-diagonal edges.- absolute
Logical; when
TRUE, rank edges by absolute magnitude during sparsification. Defaults toFALSE.- use
Missing-value handling passed to
cor.
Examples
if (FALSE) { # \dontrun{
vecs <- feature_rsa_rdm_vectors(res)
conn <- feature_rsa_connectivity(vecs, method = "spearman", keep = 0.1)
} # }