discrete_test: Performs t-tests on a matrix of binary features and a vector...

View source: R/discrete_association.R

discrete_testR Documentation

Performs t-tests on a matrix of binary features and a vector y.

Description

Performs t-tests on a matrix of binary features and a vector y.

Usage

discrete_test(X, y, W = NULL)

Arguments

X

n x m matrix of binary features (missing values are allowed).

y

length n vector of numerical values (missing values are allowed).

W

n row matrix of confounders passed to run_lm_stats_limma.

Value

A table with the following columns:

feature: the column names of X.
effect_size: an estimate of the difference between groups.
t.stat: the t-statistic associated with the test on group differences.
p.value: the p-value of the t-statistic.
q.value: the multiple hypothesis corrected p-value.


broadinstitute/cdsr_models documentation built on Aug. 9, 2022, 10:36 a.m.