perform_t_tests_all_classes_one_vs_rest: Comparison of one class against all others

View source: R/edec_stage_0.R

perform_t_tests_all_classes_one_vs_restR Documentation

Comparison of one class against all others

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 for all other samples. Such comparisons are done for each reference class in turn.

Usage

perform_t_tests_all_classes_one_vs_rest(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 class and all others.

diff.means

A matrix containing the difference between group means for each comparison. Each column corresponds to the comparison between a class and all others.


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