README.md

Zero Truncated Poisson Lognormal Distribution

CRAN
status R-CMD-check

The type 1 zero truncated Poisson lognormal distribution uses the conditional probability distribution of Poisson lognormal and the type 2 zero truncated Poisson lognormal distribution uses the zero truncated Poisson distribution. Please see vignette("ztpln") for details.

devtools::install_github("mattocci27/ztpln")

Functions

Examples

set.seed(123)
rztpln(n = 10, mu = 1, sig = 2)
#> [1]  21   3   2   4  25   2  15   6   2 102

rztpln(n = 10, mu = 1, sig = 2, type1 = FALSE)
#> [1]  1 21  3  2  4 25  3 15  6  2

rztpln(n = 10, mu = 6, sig = 4)
#> [1]  41 46771   538   259  2486 67209    78  3167  2009  1012

Reference

Bulmer, M. G. 1974. On Fitting the Poisson Lognormal Distribution to Species-Abundance Data. Biometrics 30:101-110. doi:10.2307/2529621

Inouye, D., E. Yang, G. Allen, and P. Ravikumar. 2017. A Review of Multivariate Distributions for Count Data Derived from the Poisson Distribution. Wiley interdisciplinary reviews. Computational statistics 9:e1398.doi:10.1002/wics.1398



mattocci27/ztpln documentation built on Oct. 14, 2021, 12:52 a.m.