add_interaction_contrasts: Add Interaction Contrasts to an msreve_design

View source: R/msreve_design.R

add_interaction_contrastsR Documentation

Add Interaction Contrasts to an msreve_design

Description

Creates new contrast columns representing pairwise interactions of existing contrasts in an msreve_design object.

Usage

add_interaction_contrasts(design, pairs = NULL, orthogonalize = TRUE)

Arguments

design

An object of class msreve_design.

pairs

Optional two-column matrix or list of character vectors specifying pairs of contrast column names. Default NULL uses all pairwise combinations.

orthogonalize

Logical; if TRUE (default) the expanded contrast matrix is passed through orthogonalize_contrasts.

Value

The updated msreve_design object with interaction columns appended.


bbuchsbaum/rMVPA documentation built on June 10, 2025, 8:23 p.m.