Let's say we had 5 distributions: A,B,C,D,E.
An ANOVA test would tell us whether or not all of the means are equal, and thus a low p-value would mean at least one of the means is unlikely to be equal to the mean of the whole population of distributions. Is this a correct interpretation?
If so, I'm looking for something similar to an iterated ANOVA test, which tests all combinations of possible distributions to determine the likeliest number of distributions. So, if all 5 of the above had distinct means, it would return 5. If all 5 did not have distinct means and would not pass ANOVA, it would return 1. If all were distinct except D and E, then it would return 4.
Does such a statistical function exist with an implementation in R?