Skip to contents

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().

Value

A named list of vectors, with each vector corresponding to the processed input data of the 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.

Examples

dismat <- dist(matrix(rnorm(100*100), 100, 100))
rdes <- rsa_design(~ dismat, list(dismat=dismat))
rsa_model_mat(rdes)
#> Error in rsa_model_mat(rdes): could not find function "rsa_model_mat"