File Exchange

image thumbnail

Dunn's test

version (14.6 KB) by Giuseppe Cardillo
Dunn's procedure for multiple, non parametric, comparisons


Updated 15 Apr 2018

From GitHub

View Version History

View license on GitHub

Dunn's test is the not parametric analog of Holm-Sidak multiple t-test. When you use the Kruskal-Wallis test, you know if there is a difference among your groups, but you can't apply the KWtest for each couple because the overall error is >alpha (Bonferroni inequality). By Dunn's test you can highlight where is the difference using multiple, stepdown comparisons. The algorithm requires the Statistics Toolbox.

Cite As

Giuseppe Cardillo (2021). Dunn's test (, GitHub. Retrieved .

Comments and Ratings (8)

Kouichi C. Nakamura

Hi, MATLAB's multcompare supports 'dunn-sidak' option, but that is not the same as "Dunn's test" provided here, right?

Leonardo Ermini

I would need a p-value for each comparison to plot it as function of an independent variable. Practically speaking I would need to convert the q-value in a p-value... Should I use a z-table?

Giuseppe Cardillo

Why? It is a metod to test GLOBAL p-value<=alpha (usually 0.05)

Leonardo Ermini

Hi, is there a method to extract a p-value for each comparison?

kamila benaissa

Very clear! this code is written intelligently ,thanks.

Abdallah Makhlof

thank you

Ozan Akkus

The code is writen very clearly, instructions are detailed and to the point. It did not take me more than 5 minutes to get run the test.

Cyro Junior

Very good software. I need for my original article from univesity

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!