Learn R Programming

mashr (version 0.2.79)

contrast_matrix: Create contrast matrix

Description

Create contrast matrix

Usage

contrast_matrix(R, ref, name = 1:R)

Arguments

R

the number of column for the contrast matrix

ref

the reference group. It could be a number between 1,..., R, R is number of conditions, or the name of reference group. If there is no reference group, it can be the string 'mean'.

name

a length R vector contains the name for conditions

Examples

Run this code
contrast_matrix(5, 'mean')

Run the code above in your browser using DataLab