rowTtest-methods: Student's t-test for rows

Description Usage Arguments Value Examples

Description

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

Usage

1
2
3
4
5
6
7
8
9
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

1
2
3
4
5
6
7
8
9
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, ]

chrischen1/viper_copy documentation built on May 13, 2019, 6:52 p.m.