Description Usage Arguments Details Value Note References Examples
View source: R/hypergeoquantile.R
This is an algorithm for efficient and exact calculation of hypergeometric quantiles using Chebyshev polynomials. For a fixed population size N and fixed sample size n, such calculations simultaneously produce quantiles of q for all possible values of the population number of "successes" M.
1 | hypergeoquantile(q, N, n)
|
q |
probability, it must be between 0 and 1. |
N |
population size N. |
n |
sample size n. |
The detailed algorthim can be found: Alvo, M., & Cabilio, P. (2000). Calculation of hypergeometric probabilities using Chebyshev polynomials. The American Statistician, 54(2), 141-144.
a matrix containing all possible required values of the hypergeometric quantiles for q in row M=0,1,...,N.
N can be very large say 2000 in our algorthim.
Alvo, M., & Cabilio, P. (2000). Calculation of hypergeometric probabilities using Chebyshev polynomials. The American Statistician, 54(2), 141-144.
1 2 | # Calculate the hypergeometric quantile for q=0.05, N=10, n=5.
hypergeoquantile(0.05,10,5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.