MLE of the Dirichlet distribution | R Documentation |
MLE of the parameters of a Dirichlet distribution.
diri.est(x, type = "mle")
x |
A matrix containing compositional data. |
type |
If you want to estimate the parameters use type="mle". If you want to estimate the mean vector along with the precision parameter, the second parametrisation of the Dirichlet, use type="prec". |
Maximum likelihood estimation of the parameters of a Dirichlet distribution is performed.
A list including:
loglik |
The value of the log-likelihood. |
param |
The estimated parameters. |
phi |
The estimated precision parameter, if type = "prec". |
mu |
The estimated mean vector, if type = "prec". |
runtime |
The run time of the maximisation procedure. |
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr and Giorgos Athineou <gioathineou@gmail.com>.
Ng Kai Wang, Guo-Liang Tian and Man-Lai Tang (2011). Dirichlet and related distributions: Theory, methods and applications. John Wiley & Sons.
Aitchison J. (1986). The statistical analysis of compositional data. Chapman & Hall.
diri.nr, diri.contour, rdiri, ddiri, dda, diri.reg
x <- rdiri( 100, c(5, 7, 1, 3, 10, 2, 4) )
diri.est(x)
diri.est(x, type = "prec")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.