fit_mixture | R Documentation |
Can handle 1D as well as multivariate clustering. dat
must have nrow
observation and ncol
dimensions, even if the number of dimensions is 1.
Uses BIC to determine the best number of components, up to max.components.
fit_mixture(dat, max.components = 10)
dat |
a MATRIX or dataframe containing the observations to cluster. |
max.components |
A postive integer specifying the maximum number of components to fit in the mixture. |
list containing selected output from mclust
:
G
the best number of components G.
probs
vector of cluster probabilities (mixing weights).
Mean
matrix of cluster means.
Sigma
array of cluster covariance matrices.
BIC
The BIC of the chosen mixture.
ModelName
The model name from the package mclust
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.