Function to calculate the \(\alpha\) parameters of the Dirichlet distribution based on the method of moments (MoM) using the mean \(\mu\) and standard deviation \(\sigma\) of the random variables of interest.
Value
numeric vector of method-of-moment estimates for the alpha parameters of the dirichlet distribution
Details
Based on methods of moments. If \(\mu\) is a vector of means and \(\sigma\) is a vector of standard deviations of the random variables, then the second moment \(X_2\) is defined by \(\sigma^2 + \mu^2\). Using the mean and the second moment, the \(J\) alpha parameters are computed as follows $$\alpha_i = \frac{(\mu_1-X_{2_{1}})\mu_i}{X_{2_{1}}-\mu_1^2}$$ for \(i = 1, \ldots, J-1\), and $$\alpha_J = \frac{(\mu_1-X_{2_{1}})(1-\sum_{i=1}^{J-1}{\mu_i})}{X_{2_{1}}-\mu_1^2}$$
