I'm struggeling with a problem, which is probably quite easy to resolve - but I wasn't able to do that so far. I'm trying to understand how Stata calcualtes the distance measure between clusters for centroid and Ward's clustering. For computing those I use the following commands:
Code:
cluster wardslinkage score, name(ward) measure(L2) cluster centroidlinkage score, name(center) measure(L2)
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double(id score) int(center_hgt ward_hgt single_hgt) 1 200 100 100 100 2 300 225 300 200 3 500 . . . end
Does anyone know how Stata calculates the centroid and/or the distance measure at the second iteration? Thank you in advance!
Best wishes,
Sebastian
0 Response to Issue with Clustering - Distance Measures (centroid, ward)
Post a Comment