qchyper: Quantile function for conditional hypergeometric...

Description Usage Arguments Value Examples

View source: R/chyper.R

Description

Calculates the quantile function 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.

Usage

1
qchyper(p, s, n, m, verbose = T)

Arguments

p

the desired quantile or quantiles

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?

Value

The minimum integer (or integers for a vector input) such that the input probability is less than or equal to the probability of sampling that many of the same items in all samples.

Examples

1
qchyper(c(0,0.9,1), 10, c(12,13,14), c(7,8,9))

chyper documentation built on Aug. 13, 2021, 5:09 p.m.