pValues {StabPerf}R Documentation

Computes the p-values for the genes between two sample groups.

Description

Computes the p-values for the spots between two sample groups.

Usage

pValues(data, labels, one, two, method=wilcox.test)

Arguments

data a data.frame containing samples (columns) and genes (rows)
labels a factor, grouping of the samples
one the name of the first group
two the name of the second group
method some function whose value contains a $p.value field containing p-values. Default:wilcox.test

Details

Calculates pValues of gene expression between to sample groups. The subsets of data are created using groupData. Then method is used to derive a p-Value for the two expression data-vectors of each spot.

Value

pv list of pValues for every spots.

See Also

groupData, foldChanges, mt.teststat, wilcox.test, t.test

Examples

data <- loadData("data/dataset.RData")
# calculate the pValues for all spots between "normal" and "early".
p <- pValues(data$x, data$y, 1, 2)

[Package StabPerf version 0.5 Index]