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).