comparisonMatrix: Create a matrix of which pairwise comparisons to make

View source: R/comparisonMatrix.R

comparisonMatrixR Documentation

Create a matrix of which pairwise comparisons to make

Description

Construct a matrix of pairwise comparisons (pairs can be either samples or groups)

Usage

comparisonMatrix(ftmsObj, comparisons, control = NULL)

Arguments

ftmsObj

ftmsData object

comparisons

dictates which pairwise comparisons to make. 'all' will create a matrix for all pairwise comparisons, 'control' will create a matrix for all comparisons against a specified control group, 'one-factor' will create a matrix of pairwise comparisons to be made where only one 'main_effect' changes between the two groups, or a list of specific comparisons to be made (e.g., list(c("Group1","Group2"),c("Group3","Group4"))) can be given.

control

if wanting to only compare against a control, must specify which group or sample is the control

Value

a matrix of which pairwise comparisons to make


EMSL-Computing/fticRanalysis documentation built on March 23, 2024, 8:36 p.m.