Simulation of compositional data from Gaussian mixture models.

1 |

`n` |
The sample size |

`prob` |
A vector with mixing probabilities. Its length is equal to the number of clusters. |

`mu` |
A matrix where each row corresponds to the mean vector of each cluster. |

`sigma` |
An array consisting of the covariance matrix of each cluster. |

`type` |
Should the additive ("type=alr") or the isometric (type="ilr") log-ration be used? The default value is for the additive log-ratio transformation. |

A sample from a multivariate Gaussian mixture model is generated.

A list including:

`id` |
A numeric variable indicating the cluster of simulated vector. |

`x` |
A matrix containing the simulated compositional data. The number of dimensions will be + 1. |

Michail Tsagris

R implementation and documentation: Michail Tsagris <mtsagris@yahoo.gr> and Giorgos Athineou <athineou@csd.uoc.gr>

Ryan P. Browne, Aisha ElSherbiny and Paul D. McNicholas (2015). R package mixture: Mixture Models for Clustering and Classification.

1 2 3 4 5 6 7 8 9 10 |

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

Please suggest features or report bugs with the GitHub issue tracker.

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