sage.test {statmod}R Documentation

Compare Two SAGE Libraries

Description

Compute a p-values for differential expression for each tag between two SAGE libraries.

Usage

sage.test(x, y, n1=sum(x), n2=sum(y))

Arguments

x integer vector giving counts in first library
y integer vector giving counts in second library
n1 total number of tags in first library
n2 total number of tags in second library

Details

This function uses a binomial approximation to the Fisher Exact test for each tag. This will be accurate when the total number of tags is large.

Value

Numeric vector of p-values.

Author(s)

Gordon Smyth

See Also

fisher.test2, fisher.test

Examples

sage.test(c(0,5,10),c(0,30,50),n1=10000,n2=15000)

[Package Contents]