0

My data is a table of cosines and I want to analyze it with hclust, which works on squared Euclidean distances.

shall I do:

d <- dist(mydata, method = "euclidean") fit <- hclust(d, method="ward")

or rather:

d=(dist(mydata))^2
fit <- hclust(d, method="ward")

I don't know how to treat my cosines with hclust, which needs squared Euclidean distances.

thanks!!!

0 Answers0