Description Usage Arguments Details References Examples
Probability mass function and random generation for the Skellam distribution.
1 2 3 |
x |
vector of quantiles. |
mu1, mu2 |
positive valued parameters. |
log |
logical; if TRUE, probabilities p are given as log(p). |
n |
number of observations. If |
If X and Y follow Poisson distributions with means μ[1] and μ[2], than X-Y follows Skellam distribution parametrized by μ[1] and μ[2].
Probability mass function
f(x) = exp(-(μ1+μ2)) * (μ1/μ2)^(x/2) * besselI(2*sqrt(μ1*μ2), x)
Karlis, D., & Ntzoufras, I. (2006). Bayesian analysis of the differences of count data. Statistics in medicine, 25(11), 1885-1905.
Skellam, J.G. (1946). The frequency distribution of the difference between two Poisson variates belonging to different populations. Journal of the Royal Statistical Society, series A, 109(3), 26.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.