binomialquantile {hypersampleplan} | R Documentation |
Calculation Binomial Quantiles Table using Chebyshev Polynomials
Description
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.
Usage
binomialquantile(q, n, p)
Arguments
q |
probability, it must be between 0 and 1. |
n |
number of observations. |
p |
probability of "success" |
Details
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.
Value
the required values of the binomial quantiles for q
Note
N can be very large in our algorthim.
References
Alvo, M., & Cabilio, P. (2000). Calculation of hypergeometric probabilities using Chebyshev polynomials. The American Statistician, 54(2), 141-144.
Examples
# Calculate the hypergeometric quantile for q=0.3, N=20, p=0.4.
binomialquantile(0.3,20,0.4)
[Package hypersampleplan version 0.1.1 Index]