vectorized_t_test: Note that this comes from functions I previously wrote here:...

Description Usage Arguments

View source: R/vectorized_tests.R

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
vectorized_t_test(m, y, var.equal = FALSE, alternative = "two.sided")

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


dgrtwo/drlib documentation built on Oct. 11, 2019, 6:42 a.m.