I performed a Friedman's test, which showed that there are differences among my treatments. Thus, I choose to perform the Nemenyi's post-hoc test in order to infer which treatments statistically differ among them. Thus, I used the
posthoc.friedman.nemenyi.test from the
PMCMR package to perform pairwise comparisons between treatments.
Now, I want to divide my treatments into groups, like the example below.
Treatment 1 a Treatment 2 ab Treatment 3 b Treatment 4 c
My question is: Given the p-values of a multiple-comparison post-hoc test, how can I split my treatments into groups as the above example?
Note: This question is very similar to How to obtain the results of a Tukey HSD post-hoc test in a table showing grouped pairs?. However, I want to get this information for the Nemenyi's test instead of the Tukey's test.