pcomp: Conway-Maxwell-Poisson Cumulative Density Function

Description Usage Arguments Details Value Author(s) Examples

View source: R/RcppExports.R

Description

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

Usage

1
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

1
pcomp(1:10, 1.5, 1.2)

Example output

 [1] 0.6229116 0.8669358 0.9648800 0.9927155 0.9987678 0.9998252 0.9999788
 [8] 0.9999977 0.9999998 1.0000000

CompGLM documentation built on May 2, 2019, 3:31 p.m.