Description Usage Arguments Value Examples

View source: R/Hypergeometric.R

Calculates the significance of an overlap of two sets using an hypergeometric test. It is a wrapper of the 'phyper' function.

1 2 3 4 5 6 7 | ```
Hypergeometric.test(
success,
universe_success,
universe_failure,
size_collected,
lower.tail = FALSE
)
``` |

`success` |
Is the number of elements in the overlap of the sets. |

`universe_success` |
Is the number of elements of the set of interest. |

`universe_failure` |
Is the number of elements of the set of the other set. |

`size_collected` |
The total of elements in the universe |

`lower.tail` |
Should the test be calculated on the lower tail? (Hypothesis test is lower than) |

the p-value for the hypergeometric test.

1 2 3 4 5 6 7 | ```
require(magrittr)
s = 10; S = 15; f = 10; T = 30
Hypergeometric.test(success = s,
universe_success = S,
universe_failure = f,
size_collected = T
)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.