p2lam: Calculate lambda of Conway Maxwell Poisson distribution from...

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/p2lam.R

Description

Uses uniroot to calculate lambda of the Conway Maxwell Poisson distribution with given probability of 0 successes and dispersion.

Usage

1
p2lam(p0, disp, n = 100)

Arguments

p0

probability of 0 successes.

disp

dispersion parameter (positive).

n

truncation integer.

Details

For the Conway Maxwell Poiosson ditribution the probability of x successes is given by

p(x) = λ^x exp(-λ)/(x!)^ν

for x = 0, 1, 2, ….

p2lam gives λ for the Conway Maxwell Poisson distribtution with p(0) and ν.

Value

The value of λ.

Author(s)

Philip Wilson

References

Shmueli, G., Minka, T. P., Kadane, J. B., Borle, S. and Boatwright, P., "A useful distribution for fitting discrete data: Revival of the Conway-Maxwell-Poisson distribution," J. Royal Statist. Soc., v54, pp. 127-142, 2005.

See Also

mu2lam, p2mu

Examples

1
p2lam(.05,1.2)

edpcr documentation built on May 2, 2019, 5:22 p.m.

Related to p2lam in edpcr...