validate_design_mat: Validate design matrix

View source: R/validate_design_matrix.R

validate_design_matR Documentation

Validate design matrix

Description

Coerces design to a numeric matrix, and optionally checks that the number of rows is as expected. Sets constant-valued columns to 1, and scales all other columns.

Usage

validate_design_mat(design, T_ = NULL)

Arguments

design

The design matrix

T_

the expected number of rows in design. Default: NULL (no expected value to validate).

Value

The (modified) design matrix


fMRItools documentation built on April 12, 2025, 1:32 a.m.