GNU R: Clusteranalyse

Aus Wikibooks
Zur Navigation springen Zur Suche springen

Regal: EDV GNU R

Clusteranalyse-Algorithmen finden sich in verschiedenen Paketen von R. Eine Übersicht findet sich in der Taskview Cluster.

  • k-Means Algorithmen (Standardpaket stats):
 kmeans(x, centers, iter.max = 10, nstart = 1, algorithm = c("Hartigan-Wong", "Lloyd", "Forgy", "MacQueen"))
  • Fuzzy C-Means Algorithmen (Paket e1071):
 cmeans(x, centers, iter.max = 100, verbose = FALSE, dist = "euclidean", method = "cmeans", m = 2, rate.par = NULL, weights = 1, control = list())
  • Hierarchische Clusteranalyse (Standardpaket stats):
 hclust(d, method = "complete", members=NULL)
  • Zur Berechnung der Distanzen d (Standardpaket stats):
  dist(x, method = "euclidean", diag = FALSE, upper = FALSE, p = 2)