Extract Per-ROI Predicted and Observed RDM Vectors from Feature RSA Results
Source:R/feature_rsa_connectivity.R
feature_rsa_rdm_vectors.RdConvenience helper to pull the compact lower-triangle predicted (and
optionally observed) RDM vectors stored by
feature_rsa_model(..., return_rdm_vectors = TRUE) from a
regional_mvpa_result.
Arguments
- x
A
regional_mvpa_resultreturned byrun_regional()for afeature_rsa_model, or a tibble/data frame with columnsroinumandrdm_vec.
Value
A tibble with one row per ROI and columns:
- roinum
ROI id.
- n_obs
Number of observations contributing to the vector.
- observation_index
List-column of observation ordering used for the predicted RDM.
- rdm_vec
List-column containing the lower-triangle predicted RDM vector for that ROI.
- observed_rdm_vec
List-column containing the lower-triangle observed RDM vector for that ROI (if available).
Examples
if (FALSE) { # \dontrun{
res <- run_regional(
feature_rsa_model(dataset, design, method = "pls", return_rdm_vectors = TRUE),
region_mask
)
vecs <- feature_rsa_rdm_vectors(res)
} # }