powered by
Model based clustering using mixtures of gaussian distributions.
mgc(x, NG = 2, init = "km", RemoveOutliers = FALSE, ConfidOutliers = 0.995, tolerance = 1e-07, maxiter = 100, show = TRUE, ...)
The data matrix.
Number of groups or clusters to obtain.
Initial centers can be obtained from k-means ("km") or at random ("rd").
Should the extreme values be removed to calculate the clusters?
Percentage of the points to keep for the calculations when RemoveOutliers is true.
Tolerance for convergence.
Maximum number of iterations.
Should the likelihood at each iteration be shown?
Any other parameter that can affect k-means if that is the initial configuration.
Clusters.
A basic algorithm for clustering with mixtures of gaussians with no restrictions on the covariance matrices.
# NOT RUN { X=as.matrix(iris[,1:4]) mod1=mgc(X,NG=3) plot(iris[,1:4], col=mod1$Classification) table(iris[,5],mod1$Classification) # }
Run the code above in your browser using DataLab