View source: R/mini_batch_rowTestFUN.R
mini_batch_rowTestFUN | R Documentation |
Mini batch version of a rowTestFUN function.
mini_batch_rowTestFUN(
rowTestFUN,
Y,
categ,
alternative = c("two.sided", "less", "greater"),
max_batch_size = 1e+06
)
rowTestFUN |
A function taking as inputs Y, categ and Alternative and
giving as a result a matrix of $p$-values. Example |
Y |
A |
categ |
Either a numeric vector of |
alternative |
A character string specifying the alternative hypothesis.
Must be one of "two.sided" (default), "greater" or "less". As in
|
max_batch_size |
A number specifying the maximum size of information in each batch |
the p-values for the test
p <- 53
n <- 35
mat <- matrix(rnorm(p * n), ncol = n)
cls <- rep(c(0, 1), times = c(10, n - 10))
mini_batch_rowTestFUN(rowTestFUN = rowWelchTests, Y = mat,
categ = cls, alternative = "two.sided",
max_batch_size = 1e6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.