quantile.poisson: Determine quantiles of a Poisson distribution

Description Usage Arguments Value Examples

Description

quantile() is the inverse of cdf().

Usage

1
2
## S3 method for class 'Poisson'
quantile(d, p, ...)

Arguments

d

A Poisson object created by a call to Poisson().

p

A vector of probabilites.

...

Unused. Unevaluated arguments will generate a warning to catch mispellings or other possible errors.

Value

A vector of quantiles, one for each element of p.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
set.seed(27)

X <- Poisson(2)
X

random(X, 10)

pdf(X, 2)
log_pdf(X, 2)

cdf(X, 4)
quantile(X, 0.7)

cdf(X, quantile(X, 0.7))
quantile(X, cdf(X, 7))

alexpghayes/distributions documentation built on Nov. 19, 2019, 8:39 a.m.