rowTtest {viper} | R Documentation |
This function performs a Student's t-test on each row of a matrix
rowTtest(x, ...) ## S4 method for signature 'matrix' rowTtest(x, y = NULL, mu = 0, alternative = "two.sided") ## S4 method for signature 'ExpressionSet' rowTtest(x, pheno, group1, group2 = NULL, mu = 0, alternative = "two.sided")
x |
ExpressionSet object or Numerical matrix containing the test samples |
... |
Additional parameters added to keep compatibility |
y |
Optional numerical matrix containing the reference samples. If ommited |
mu |
Number indicating the alternative hypothesis when |
alternative |
Character string indicating the tail for the test, either two.sided, greater or lower |
pheno |
Character string indicating the phenotype data to use |
group1 |
Vector of character strings indicating the category from phenotype |
group2 |
Vector of character strings indicating the category from phenotype |
List of Student-t-statistic (statistic
) and p-values (p.value
)
data(bcellViper, package="bcellViper") d1 <- exprs(dset) res <- rowTtest(d1[, 1:10], d1[, 11:20]) res$statistic[1:5, ] res$p.value[1:5, ] data(bcellViper, package="bcellViper") res <- rowTtest(dset, "description", "CB", "N") res$statistic[1:5, ] res$p.value[1:5, ]