Learn R Programming

ActivePathways (version 1.0.1)

hypergeometric: Hypergemoetric Test

Description

Perform a Hypergeometric test, aka Fisher's exact test, on a 2x2 contingency table with a 'greater' alternative hypothesis. That is, find the probability that counts[1, 1] or more genes would be found in annotations, assuming the null hypothesis.

Usage

hypergeometric(counts)

Arguments

counts

a 2x2 numerical matrix representing a contingency table

Value

a p-value