| Library: | stats |
| See also: | pdfbin cdfbin randbin |
| Quantlet: | qfbin | |
| Description: | computes the quantile function for a binomial distribution |
| Usage: | q = qfbin(n, p, x) | |
| Input: | ||
| n | scalar parameter of the binomial distribution | |
| p | scalar parameter of the binomial distribution | |
| x | m x 1 vector of quantiles (0<=x<=1) | |
| Output: | ||
| q | m x 1 vector of the quantile function | |
library ("stats")
qfbin (20, 0.1, uniform(10))
Contents of q [ 1,] 0 [ 2,] 0 [ 3,] 1 [ 4,] 2 [ 5,] 0 [ 6,] 1 [ 7,] 2 [ 8,] 2 [ 9,] 2 [10,] 1
| Library: | stats |
| See also: | pdfbin cdfbin randbin |