Skip to contents

Runs representational similarity analysis (RSA) for each voxel set in a list.

Usage

rsa_iterate(
  mod_spec,
  vox_list,
  ids = 1:length(vox_list),
  permute = FALSE,
  regtype = c("pearson", "spearman", "lm", "rfit"),
  distmethod = c("spearman", "pearson")
)

Arguments

mod_spec

An object of class rsa_model specifying the RSA model.

vox_list

A list of voxel indices or coordinates for each voxel set.

ids

A vector of IDs for each voxel set (defaults to 1:length(vox_list)).

permute

Logical, whether to permute the labels (defaults to FALSE).

regtype

A character string specifying the analysis method. One of: "pearson", "spearman", "lm", or "rfit" (defaults to "pearson").

distmethod

A character string specifying the method used to compute distances between observations. One of: "pearson" or "spearman" (defaults to "spearman").