Hi Everyone, 

I am doing hierarchical clustering analysis and have a
question regarding "cutree". 

I am doing things like this:

hc <- hclust(dist(X))
a <- cutree(hc, k=2)

Basically "a" is a vector containing the assignments
of 1 or 2 for each sample. May I know how "cutree"
decides to assign 1 and 2's to each sample (in other
words, how clusters 1 and 2 are decided)? I am having
the feeling that the first sample will always be
assigned to Cluster 1, but I am not sure about this. 

Thank you!

Best,
Jun 


 
____________________________________________________________________________________
Looking for earth-friendly autos? 
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.

______________________________________________
R-help@stat.math.ethz.ch 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.

Reply via email to