Implementation of Dunn's multiple comparison test, following a Kruskal-Wallis 1-way ANOVA
✓ Published0🌍 Public
Aandreaeverett
Last edited Dec 3, 2014
Created on Jul 31, 2017
This visualization implements Dunn's multiple comparison test following a Kruskal-Wallis one-way ANOVA. It computes the omnibus H-statistic and p-value from ranked group data, then calculates pairwise Z-scores comparing mean ranks between all group combinations. The code uses scipy.stats.rankdata and tiecorrect for ranking, statsmodels.stats.multitest.multipletests for p-value correction, and supports configurable alpha levels and correction methods. The function returns the H-statistic, omnibus p-value, pairwise Z-scores, corrected p-values, and a boolean rejection array for hypothesis testing.
AI-generated description