Description Usage Arguments Details Value References See Also Examples
Density function and random generation for Zero-Trauncated Poisson Lognormal
distribution with parameters mu
and sd sig
.
1 2 3 |
x |
vector of (non-negative integer) quantiles. |
mu |
mean of lognormal distribution. |
sig |
standard deviation of lognormal distribution. |
log |
logical; if TRUE, probabilities p are given as log(p). |
type1 |
logical; if TRUE, Use type 1 ztpln else use type 2. |
n |
number of random values to return. |
A compound Poisson-lognormal distribution is a Poisson probability distribution where its parameter λ is a random variable with lognormal distribution, that is to say logλ are normally distributed with mean μ and variance σ^2 (Bulmer 1974). The zero-truncated Poisson-lognormal distribution can be derived from a zero-truncated Poisson distribution.
Type 1 ZTPLN truncates zero based on Poisson-lognormal distribution and
type 2 ZTPLN truncates zero based on zero-truncated Poisson distribution.
For mathematical details, please see vignette("ztpln")
dztpln gives the (log) density and rztpln generates random variates.
Bulmer, M. G. 1974. On Fitting the Poisson Lognormal Distribution to Species-Abundance Data. Biometrics 30:101-110.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.