Description Usage Arguments Details Value Note References Examples
View source: R/binomialquantile.R
This is an algorithm for exact calculation of Binomial quantiles using Chebyshev polynomials. For a fixed population size n and probability of "success" p, such calculations produce quantile of q.
1 | binomialquantile(q, n, p)
|
q |
probability, it must be between 0 and 1. |
n |
number of observations. |
p |
probability of "success" |
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.
the required values of the binomial quantiles for q
N can be very large 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.3, N=20, p=0.4.
binomialquantile(0.3,20,0.4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.