vectorized_t_test: Perform a Student's T-test comparing a metric to each column...

Description Usage Arguments

Description

This function is similar to apply(m, 2, function(col) t.test(y ~ col)$p.value), but is vectorized to make it much faster

Usage

1
2
vectorized_t_test(m, y, var.equal = FALSE, alternative = "two.sided",
  tbl = FALSE)

Arguments

m

binary matrix

y

numeric vector to test each column of m against

var.equal

assume that the variances are equal

alternative

whether to use a one-sided test, and if so which way

tbl

Whether to return as a data frame


dgrtwo/GSEAMA documentation built on May 15, 2019, 7:22 a.m.