Gaussian mixture models for compositional data
Gaussian mixture models for compositional data.
mix.compnorm(x, g, model = NULL, type = "alr", veo = FALSE)
x |
A matrix with the compositional data. |
g |
How many clusters to create. |
model |
The type of model to be used.If NULL all 14 of the ones listed below are fitted. Otherwise, choose one from below.
|
type |
Either the additive ("alr") or the isometric ("ilr") log-ratio transformation is to be used.. |
veo |
Stands for "Variables exceed observations". If TRUE then if the number variablesin the model exceeds the number of observations, but the model is still fitted. |
A log-ratio transformation is applied and then a Gaussian mixture model is constructed.
A list including:
mu |
A matrix where each row corresponds to the mean vector of eahc cluster. |
su |
An array containing the covariance matrix of each cluster. |
prob |
The estimated mixing probabilities. |
est |
The estimated cluster membership values. |
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr and Giorgos Athineou <gioathineou@gmail.com>.
Ryan P. Browne, Aisha ElSherbiny and Paul D. McNicholas (2015). R package mixture: Mixture Models for Clustering and Classification.
Aitchison J. (1986). The statistical analysis of compositional data. Chapman \& Hall.
## Not run: x <- as.matrix(iris[, 1:4]) x <- x/ rowSums(x) mod1 <- mix.compnorm(x, 3, model = "EII" ) mod2 <- mix.compnorm(x, 4, model = "VII") ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.