contrast_matrix: Create contrast matrix

View source: R/set_data.R

contrast_matrixR Documentation

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

contrast_matrix(5, 'mean')


mashr documentation built on Oct. 18, 2023, 5:08 p.m.