CompGLM (version 2.0)

pcomp: 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 \(\lambda\).

nu

a double vector of the parameter \(\nu\).

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)

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.

Details

See dcomp for details of the PDF.

Examples

Run this code
# NOT RUN {
pcomp(1:10, 1.5, 1.2)
# }

Run the code above in your browser using DataLab