I'd like to assess how scattered a cluster of binary vectors $X_j$ is, and as I understand the conventional way for doing this is:
$$ S = \frac{1}{T} \sum_{j}^{T}\|X_j-A_j\|_p, $$
where $A_j$ is the centroid of the cluster and $\|X_j-A_j\|_p$ is the distance between the centroid and the individual vector.
So my question is how to compute $A_j$ for Gower distances (and if there's an existing R implementation I could use, it'd also be great).
||in your notation just indicate that the distance b\w the point and the centroid is squared? And what distance - is that Euclidean distance? (Note that "Gower distance" is conventionally defined between data points, not between a data point and some centre.) – ttnphns Sep 27 '14 at 09:10