Description Usage Arguments Examples
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.
1 2 | hypergeo.overlap.test(list1, list2, background1, background2,
representation = "over")
|
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". |
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.