Learn R Programming

HDLSSkST (version 2.1.0)

pmf: Generalized Hypergeometric Probability

Description

A function that provides the probability of observing an \(r\times c\) contingency table using generalized hypergeometric probability.

Usage

pmf(M)

Arguments

M

\(r\times c\) contingency table

Value

a single value between \(0\) and \(1\)

References

Biplab Paul, Shyamal K De and Anil K Ghosh (2021). Some clustering based exact distribution-free k-sample tests applicable to high dimension, low sample size data, Journal of Multivariate Analysis, doi:10.1016/j.jmva.2021.104897.

Cyrus R Mehta and Nitin R Patel (1983). A network algorithm for performing Fisher's exact test in rxc contingency tables, Journal of the American Statistical Association, 78(382):427-434, doi:10.2307/2288652.

Examples

Run this code
# NOT RUN {
   # Generalized hypergeometric probability of rxc Contingency Table:
   mat <- matrix(1:20,5,4, byrow = TRUE)
   pmf(mat)

   ## outputs:
   #[1] 4.556478e-09
# }

Run the code above in your browser using DataLab