hypergeoTest | R Documentation |
Run one-tailed hypergeometric test (fisher test) with set inputs. 'hypergeoTest' uses hypergeometric distribution function phyper with lower.tail = FALSE fixed. This is commonly used for testing significance in overlap between sets.
hypergeoTest(query, reference, bgspace)
query |
query set (balls drawn) |
reference |
reference set (white balls) |
bgspace |
background space (balls in urn) |
Returns a dataframe of 4 columns. pVal is p value returned by phyper. oddsRatio gives number of observation by number of expectation. int and bg refers to the number of intersected items and background space respectively. By nature of phyper, reference and query input should be interchangeable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.