binomialquantile: Calculation Binomial Quantiles Table using Chebyshev...

Description Usage Arguments Details Value Note References Examples

View source: R/binomialquantile.R

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

1

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

1
2
# Calculate the hypergeometric quantile for q=0.3, N=20, p=0.4.
binomialquantile(0.3,20,0.4)

hypersampleplan documentation built on May 2, 2019, 9:12 a.m.