vector_rsa_design: Construct a design for a vectorized RSA model

View source: R/vector_rsa_model.R

vector_rsa_designR Documentation

Construct a design for a vectorized RSA model

Description

This function constructs a design for an RSA model using a single distance matrix, labels, and blocks.

Usage

vector_rsa_design(D, labels, block_var)

Arguments

D

A representational dissimilarity matrix with row.names indicating labels.

labels

character vector of labels corresponding to rows in another dataset X.

block_var

vector indicating the block (strata) each label belongs to.

Details

The function verifies that all labels in the 'labels' are present in the row.names of 'D'. It also sets up for precomputing cross-block pairs if needed.

Value

A list containing the elements of the RSA design, class attributes "vector_rsa_design" and "list".


bbuchsbaum/rMVPA documentation built on April 28, 2024, 6:30 a.m.