perform_t_tests_all_classes_each_pair: Comparison of each pair of classes

View source: R/edec_stage_0.R

perform_t_tests_all_classes_each_pairR Documentation

Comparison of each pair of classes

Description

For each row of a matrix, this function performs T-tests comparing the values of that row for samples in one class against the values in that row samples in another class. Such comparisons are done for each pair of reference classes.

Usage

perform_t_tests_all_classes_each_pair(data_matrix, class_vector)

Arguments

data_matrix

Matrix containing the data for all samples. Columns correspond to different samples.

class_vector

A vector of numbers or strings representing the classes associated with each column in data_matrix.

Value

A list containing:

p.values

A matrix containing the p-values for each comparison. Each column corresponds to the comparison between a pair of classes.

diff.means

A matrix containing the difference between group means for each comparison. Each column corresponds to the comparison between a pair of classes.


bozdaglab/CTDPathSim2.0 documentation built on April 14, 2022, 12:39 a.m.