makeContrasts {limma} | R Documentation |
Construct the contrasts matrix corresponding to specified contrasts of a set of given parameters.
makeContrasts(..., levels)
... |
expressions, or character strings which can be parsed to expressions, specifying contrasts |
levels |
character vector giving the names of the parameters to be contrasts, or a factor or design matrix from which the names can be extracted. |
Matrix which columns corresponding to contrasts.
Gordon Smyth
An overview of linear model functions in limma is given by 5.LinearModels.
makeContrasts(B-A,C-B,C-A,levels=c("A","B","C")) makeContrasts("A","B","B-A",levels=c("A","B"))