MLE of the zero adjusted Dirichlet distribution | R Documentation |
MLE of the zero adjusted Dirichlet distribution.
zad.est(y)
y |
A matrix with the compositional data. |
A zero adjusted Dirichlet distribution is being fitted and its parameters are estimated.
A list including:
loglik |
The value of the log-likelihood. |
phi |
The precision parameter. If covariates are linked with it (function "diri.reg2"), this will be a vector. |
mu |
The mean vector of the distribution. |
runtime |
The time required by the model.. |
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
Tsagris M. and Stewart C. (2018). A Dirichlet regression model for compositional data with zeros. Lobachevskii Journal of Mathematics, 39(3): 398–412.
Preprint available from https://arxiv.org/pdf/1410.5011.pdf
zadr, diri.nr, zilogitnorm.est, zeroreplace
y <- as.matrix(iris[, 1:3])
y <- y / rowSums(y)
mod1 <- diri.nr(y)
y[sample(1:450, 15) ] <- 0
mod2 <- zad.est(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.