Dear R Users: I am new to R and I am trying to do a cluster analysis on a single continuous variable using the Agnes [Agglomerative Nesting (Hierarchical Clustering) ] in the Package âclusterâ. I was able to apply this clustering method to my data:
ward1 <- Agnes(balances, diss= FALSE, metric = "euclidean", stand = TRUE, method = "ward", keep.diss =TRUE, keep.data = TRUE) Now I am wondering if someone can point me in the right direction with the following: 1. 1. How do I determine the number of clusters? I would like to apply the Calinkski and Harabasz (1974) stopping rule recommended in the Monte Carlo Simulation by Milligan and Cooper (1985). 2. 2. How do I obtain the clustering rules? (I.e. how do I assign my observations to the cluster from my final solution?). I was able to find the Package âclusterSimâ which Calculates Calinski-Harabasz pseudo F-statistic but I am having some difficulty substituting in the CL (A vector of integers indicating the cluster to which each object is allocated) argument in the formula: index.G1 (x,cl,d=NULL,centrotypes="centroids") Thanks in advance for any help, Sincerely, Pancho Aguirre [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.