Density computation of the bivariate Poisson distribution | R Documentation |
Density computation of the bivariate Poisson distribution.
dbp(x1, x2 = NULL, lambda, logged = TRUE)
x1 |
Either a numerical vector with the values of the first variable or a matrix with 2 columns containing both variables. In the latter case, x2 must be NULL. |
x2 |
A numerical vector with the values of the second. If x1 is a matrix with 2 columns containing both variables, x2 must be NULL. |
lambda |
A vector with three numbers, the estimates of the |
logged |
Should the logarithm of the density values be computed? The default value is TRUE. |
The density of the bivariate Poisson distribution is computed.
A vector with the logged density values.
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
Kawamura K. (1984). Direct calculation of maximum likelihood estimator for the bivariate Poisson distribution. Kodai Mathematical Journal, 7(2): 211–221.
Kocherlakota S. and Kocherlakota K. (1992). Bivariate discrete distributions. CRC Press.
Karlis D. and Ntzoufras I. (2003). Analysis of sports data by using bivariate poisson models. Journal of the Royal Statistical Society: Series D (The Statistician), 52(3): 381–393.
rbp
x <- rbp( 300, c(3, 5, 2) )
a <- bp.mle(x)
f <- dbp(x, lambda = a$lambda)
sum(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.