pchyper | R Documentation |
Calculates the CDF of a conditional hypergeometric distribution: the distribution of how many items are in the overlap of all samples when samples of arbitrary size are each taken without replacement from populations of arbitrary size.
pchyper(k, s, n, m, verbose = T)
k |
an integer or vector of integers representing the overlap size |
s |
an integer representing the size of the intersecting population |
n |
a vector of integers representing the sizes of each non-intersecting population |
m |
a vector of integers representing the sample sizes |
verbose |
T/F should intermediate messages be printed? |
The probability of sampling k
or less of the same items in all samples
pchyper(c(3,5), 10, c(12,13,14), c(7,8,9))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.