This function calculates the between-group sums of squares for all variables or all log-ratios. This function only supports binary outcomes.
ssBetween(x, group, pairwise = FALSE, ...)
A matrix with rows as samples (N) and columns as components (D).
A character vector. Group or sub-group membership.
Argument passed to propr::propd
.
A logical. Toggles whether to decompose sums of squares for each log-ratio.
Other arguments passed to propr::propd
.
If pairwise = FALSE
, this function returns
a vector of the sums of squares for each variable.
If pairwise = TRUE
, this function returns a matrix
of the sums of squares for each log-ratio.