K Means Stata. K means is implemented in many statistical software programs. Segments specifies that k nearly equal partitions be formed from the data.
Approximately the first n k observations are assigned to the first group the second n k observations are assigned to the second group and so on. Pre defining can happen in a number of ways. Stata has implemented two partition methods kmeans and kmedians.
K means x centers iter max 10 nstart 1.
Approximately the first n k observations are assigned to the first group the second n k observations are assigned to the second group and so on. Segments specifies that k nearly equal partitions be formed from the data. The group means or medians from these k groups are to be used as the starting group centers. The cluster measures command see cl cluster programming utilities in the manual or help clprog can compute the distances.