Calculates average Euclidean distance between means in arbitrary dimensions.
Arguments
- data
a numeric vector or
n x k
matrix or data frame containing a vector identifying cluster membership for each observation, to be passed toclusters
argument.- cols
columns of
data
to be used in difference-in-means calculation.- clusters
column of
data
indicating cluster membership for each observation.