Description Usage Arguments Details Value Examples
This function builds a design matrix for the Adjustment Normalization Step, in which covariates are two (possibly nested) categorical factors and one or more continuous variables.
1 | make_design(bio, batch, W, nested = FALSE)
|
bio |
factor. The biological covariate. |
batch |
factor. The batch covariate. |
W |
numeric. Either a vector or matrix containing one or more continuous covariates (e.g. RUVg factors). |
nested |
logical. Whether or not to consider a nested design (see details). |
If nested=TRUE a nested design is used, i.e. the batch variable is assumed to be nested within the bio variable. Here, nested means that each batch is composed of samples from only *one* level of bio, while each level of bio may contain multiple batches.
The design matrix.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.