validate_design_mat: 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)
Value
The (modified) design matrix
Arguments
- design
The design matrix
- T_
the expected number of rows in design. Default:
NULL (no expected value to validate).