Creates a design matrix incorporating the group variable and optional covariates.
Usage
build_design_matrix(metadata, group, covariates = NULL)
Arguments
- metadata
A data frame containing sample metadata
- group
A character string specifying the grouping variable column name
- covariates
A character vector of covariate column names (optional)
Value
A design matrix suitable for limma