MLE for multivariate discrete data {MLE} | R Documentation |
MLE for multivariate discrete data
Description
MLE for multivariate discrete data.
Usage
mvdisc.mle(x, distr = "multinom", tol = 1e-07)
Arguments
x |
A matrix with discrete valued non negative data. |
distr |
The distribution to fit. "multinom" stands for the multinomial distribution, "dirimultinom" stands for the Dirichlet-multinomial distribution. "bp.mle" and "bp.mle2" stand for the bivariate Poisson distribution. The The "bp.mle" returns a lot of information and is slower than "bp.mle2", which returns fewer information, but is faster. |
tol |
The tolerance level to terminate the Newton-Raphson algorithm for the Dirichlet multinomial distribution. |
Value
A list including:
iters |
The number of iterations required by the Newton-Raphson algortihm. |
loglik |
A vector with the value of the maximised log-likelihood. |
param |
A vector of the parameters. |
prob |
A vector with the estimated probabilities. |
For the "bp.mle" a list including:
lambda |
A vector with the estimated values of |
rho |
The estimated correlation coefficient, that is: |
ci |
The 95% Confidence intervals using the observed and the asymptotic information matrix. |
loglik |
The log-likelihood values assuming independence ( |
pvalue |
Three p-values for testing |
For the "bp.mle2" a list including:
lambda |
A vector with the estimated values of |
loglik |
The log-likelihood values assuming independence ( |
Author(s)
Michail Tsagris and Sofia Piperaki.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr and Sofia Piperaki sofiapip23@gmail.com.
References
Johnson Norman L., Kotz Samuel and Balakrishnan (1997). Discrete Multivariate Distributions. Wiley.
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.
See Also
Examples
x <- t( rmultinom(1000, 20, c(0.4, 0.5, 0.1) ) )
mvdisc.mle(x, distr = "multinom")