Fitting a Dirichlet distribution via Newton-Rapshon.

1 | ```
diri.nr2(x, tol = 1e-07)
``` |

`x` |
A matrix containing the compositional data. Zeros are not allowed. |

`tol` |
The tolerance level idicating no further increase in the log-likelihood. |

Maximum likelihood estimation of the parameters of a Dirichlet distribution is performed via Newton-Raphson. Initial values suggested by Minka (2003) are used.

A list including:

`loglik` |
The value of the log-likelihood. |

`param` |
The estimated parameters. |

Michail Tsagris and Manos Papadakis

R implementation and documentation: Michail Tsagris <mtsagris@yahoo.gr> and Manos Papadakis <papadakm95@gmail.com>

```
beta.mle
```

1 2 3 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.