The Skellam Distribution
Density and random generation for the Skellam distribution.
dskellam(x, mu1, mu2, log = FALSE) rskellam(n, mu1, mu2)
x |
vector of quantiles. |
.
log |
Logical; if TRUE, the logarithm is returned. |
See skellam
, the VGAM family function
for estimating the parameters,
for the formula of the probability density function and other details.
dskellam
gives the density, and
rskellam
generates random deviates.
Numerical problems may occur for data if mu1 and/or mu2 are large. The normal approximation for this case has not been implemented yet.
## Not run: mu1 <- 1; mu2 <- 2; x <- (-7):7 plot(x, dskellam(x, mu1, mu2), type = "h", las = 1, col = "blue", main = paste("Density of Skellam distribution with mu1 = ", mu1, " and mu2 = ", mu2, sep = "")) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.