pcomp {CompGLM}R Documentation

Conway-Maxwell-Poisson Cumulative Density Function

Description

The CDF of the Conway-Maxwell-Poisson distribution with parameters lam and nu at point q.

Usage

pcomp(q, lam, nu, sumTo = 100L, lowerTail = TRUE, logP = FALSE)

Arguments

q

an integer vector where the CDF is to be calculated. If the input is not an integer, it will be coerced to be an integer.

lam

a double vector of the parameter λ.

nu

a double vector of the parameter ν.

sumTo

an integer for the summation term in the density (default 100)

lowerTail

a boolean for if P(Y<=q) should be returned (default TRUE), otherwise, P(Y>q) is returned.

logP

a boolean for if the log of the probability should be given (default FALSE)

Details

See dcomp for details of the PDF.

Value

The value of the CDF (or 1-CDF if lowerTail = FALSE) or log of this value if logP = TRUE. Input vectors are recycled to be same length.

Author(s)

Jeffrey Pollock <jeffpollock9@gmail.com>

Examples

pcomp(1:10, 1.5, 1.2)

[Package CompGLM version 2.0 Index]