This function calculates the variance of the expected pairwise allocation
matrix (EPAM) within clusters/subsets over the total variance of the expected
pairwise allocation matrix.
Usage
variance.ratio(x, y)
Arguments
x, y
If y is not specified then x must be an object of
class sdols.confidence. Otherwise, x is a vector of cluster
labels and y is an expected pairwise allocation matrix.
Details
The variance.ratio function takes as input an object of class
sdols.confidence and calculates the variance ratio for the estimated
partition from the corresponding expected pairwise allocation matrix (EPAM).
The variance ratio is the weighted average of the within cluster variances of
the EPAM, weighted by the number of pairwise EPAM values per cluster, over
the total variance of the EPAM.