cdf: cdf

Description Usage Arguments Details Author(s) Examples

Description

cdf calculates the cumulative probability function for the Poisson distribution.

Usage

1
cdf(x, lamb, lower.tail = TRUE, log.p = FALSE)

Arguments

x

vector of quantiles

lamb

vector of non-negative means for Poisson distribution

lower.tail

logical; if TRUE, computes the probability of observing count less than or equal to x. If FALSE, computes the probability of observing a count greater than x

log.p

logical; if TRUE, returns log of cumulative probability of x. If FALSE, returns the cumulative probabilities of x

Details

cdf uses the cumulative probability function of gamma distribution

1/Γ(floor(x)+1) * γ(floor(x)+1,λ)

Author(s)

Cynthia K. Zajac (-_^)

Examples

1
2
3
4
cdf(123456789, 123456789)

# Upper tail probability
cdf(5, 5:10, lower.tail = FALSE)

cynzajac/CZPoisson documentation built on Nov. 27, 2019, 3:22 a.m.