Description Usage Arguments Details
View source: R/define_contrasts.R
There is a slight problem with limma::makeContrasts. 'makeContrasts(contrasts = some_named_vector, levels = design)' does not set the names of the resulting contrasts to match the names in 'some_named_vector'.
1 | define_contrasts(.contrasts, .names, levels)
|
.contrasts |
A character vector. All words within the entries should be columns in the design matrix. Any numbers will be treated as numbers. Examples, c("0", "1 + coef1", "coef2 - 2*coef1"). |
.names |
A character vector of the same length as '.contrasts'. These names will be the column names of the returned matrix. |
levels |
A design matrix. The column names of this matrix will become the row names of the returned matrix |
Here we convert a vector of string-based contrast definitions and the names for those contrasts into a contrasts matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.