Skip to contents

Creates a design for feature-based Representational Similarity Analysis (RSA). You can either supply a similarity matrix S (and optionally select dimensions) or directly supply a feature matrix F.

Usage

feature_rsa_design(S = NULL, F = NULL, labels, k = 0)

Arguments

S

A symmetric similarity matrix representing the feature space relationships. If NULL, you must supply F.

F

A feature space matrix (observations by features). If supplied, this overrides S and k.

labels

Vector of labels corresponding to the rows/columns of S or observations of F.

k

Integer specifying the number of feature dimensions to retain when using S. If 0 (default), automatically determines dimensions using eigenvalue threshold > 1.

Value

A feature_rsa_design object (S3 class) containing:

S

The input similarity matrix (if used)

F

Feature space projection matrix

labels

Vector of observation labels

Details

If F is supplied directly, it is used as is. If only S is supplied, the design computes eigen decomposition of S to find a suitable feature space (F).