EM | R Documentation |
Run the EM algorithm for clustering.
EM(d, clusters, model = "VVV", ...)
d |
The dataset ( |
clusters |
Either an integer (the number of clusters) or a ( |
model |
A character string indicating the model. The help file for |
... |
Other parameters. |
A clustering model obtained by EM.
em
, mstep
, mclustModelNames
require (datasets)
data (iris)
EM (iris [, -5], 3) # Default initialization
km = KMEANS (iris [, -5], k = 3)
EM (iris [, -5], km$cluster) # Initialization with another clustering method
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.