hypergeo.overlap.test: Hypergeometric test of overlap function

Description Usage Arguments Examples

Description

For four character vectors (list1, list2, background1, background2), this function computes a hypergeometric p-value of the overlap. It can test for either overrepresentation or underrepresention.

Usage

1
2
hypergeo.overlap.test(list1, list2, background1, background2,
  representation = "over")

Arguments

list1

the first hypergeometric test list

list2

the second hypergeometric test list

background1

the background for the first list

background2

the background for the second list

representation

Test for overrepresentation or underrepresentation? Defaults to "over".

Examples

1
2
3
4
5
6
x = c("one", "two", "three", "four", "five")
y = c("two", "three", "four", "five", "six")
x.bg = c("one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven")
y.bg = c("one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "twelve")
# should return p = 0.003968
hypergeo.overlap.test(x, y, x.bg, y.bg, representation = "over")

msaul/msaul documentation built on May 23, 2019, 7:50 a.m.