rowTtest {viper}R Documentation

Student's t-test for rows

Description

This function performs a Student's t-test on each row of a matrix

Usage

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")

Arguments

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 x will be tested against mean = mu

mu

Number indicating the alternative hypothesis when y is ommited

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 pheno to use as test group

group2

Vector of character strings indicating the category from phenotype pheno to use as control group

Value

List of Student-t-statistic (statistic) and p-values (p.value)

Examples

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, ]

[Package viper version 1.26.0 Index]