Find the number of unique groups contributing to aggregates
Find the number of unique groups contributing to aggregates
Assuming aggregates are calculated via a dummy matrix by z = t(x) %*% y, the the number of unique contributing groups, according to a grouping variable, are found for each aggregate. The missing group category is not counted.