contrast_matrix: Create contrast matrix

Description Usage Arguments Examples

View source: R/set_data.R

Description

Create contrast matrix

Usage

1
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

1
contrast_matrix(5, 'mean')

mashr documentation built on May 24, 2021, 1:06 a.m.