Compute Sum of Squares or LCBD from a Symmetric Dissimilarity Matrix
SS_calc.RdComputes the per-site sum of squares (SS) from a symmetric dissimilarity matrix using double-centering. Optionally returns LCBD values (relative contributions to total SS).
Details
The function double-centers the dissimilarity matrix x and extracts the diagonal elements. If LCBD = TRUE, the diagonal is
normalized to sum to 1.