rsa_model_mat: Construct a model matrix for an RSA (Representational...

View source: R/rsa_model.R

rsa_model_matR Documentation

Construct a model matrix for an RSA (Representational Similarity Analysis) design

Description

This function constructs a model matrix for the given RSA design by processing distance matrices and other variables.

Usage

rsa_model_mat(rsa_des)

Arguments

rsa_des

An RSA design object created by rsa_design().

Details

The function takes an RSA design object as input and processes the distance matrices and other variables to construct a model matrix. It handles different types of input matrices, including symmetric and asymmetric distance matrices, and can include or exclude within-run comparisons based on the RSA design.

Value

A named list of vectors, with each vector corresponding to the processed input data of the RSA design.

Examples

dismat <- dist(matrix(rnorm(100*100), 100, 100))
rdes <- rsa_design(~ dismat, list(dismat=dismat))
rsa_model_mat(rdes)

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