mwlsr.contrastModelMatrix: mwlsr.contrastModelMatrix

Description Usage Arguments Value

Description

Transforms a design matrix to a contrast matrix. Instead of calculating the contrast result directly, as in mwlsr.contrastTest, this method would be used to create "reduced" model with a contrast matrix and then you can evaluate significant associations with and LRT. The code for this function is based on code within edgeR::glmLRT.

Usage

1
mwlsr.contrastModelMatrix(design, contrast)

Arguments

design

Full design matrix

contrast

Single column contrast matrix indicating which levels of the full design to contrast against one other.

Value

New, reduced, design matrix


PfaffLab/mwlsr documentation built on May 12, 2019, 5:22 p.m.