Dunn's Test

Dunn's test is a non-parametric post-hoc test. After a Kruskal-Wallis test shows that groups differ, Dunn's test finds which pairs of groups differ. It compares rank sums between every pair of groups and adjusts the p-values for multiple comparisons. Use it instead of Dunnett's or Tukey's test when the response is not normally distributed, is skewed, or contains outliers.

BioStat Prime runs the Kruskal-Wallis test internally from the same inputs and shows its result above the Dunn's table, so you can check the overall test before reading the pairwise results.

Steps

Load the dataset -> Go to ToxCore -> Dunn's Test -> Move the numeric response to Response Variable -> Move the grouping variable to Group Factor -> Choose the p-value adjustment method and output options -> Execute the dialog.

Dunn's Test

Video walkthrough

Video walkthrough coming soon.

Data requirements

  • One row per observation (long format), with a numeric response column and a group column.

  • The group variable must have at least 3 levels. For exactly two groups, use the Mann-Whitney U Test.

  • Rows with a missing response or missing group are left out of the analysis.

Dialog options

Enter Result Name

A name for this analysis (default DunnsTest1).

Response Variable (numeric)

The measured outcome.

Group Factor (≥3 levels)

The variable that identifies the groups.

p-value Adjustment Method
  • bonferroni (default): the most conservative; multiplies each p-value by the number of comparisons.

  • holm: step-down version of Bonferroni; always at least as powerful.

  • hochberg: step-up method; more powerful than Holm when its assumptions hold.

  • bh (Benjamini-Hochberg): controls the false discovery rate rather than the chance of any false positive.

  • by (Benjamini-Yekutieli): a more conservative false discovery rate method.

  • none: no adjustment (not recommended when there are many comparisons).

Show Kruskal-Wallis Summary

Shows the Kruskal-Wallis chi-squared, degrees of freedom and p-value, with a note on whether the overall test is significant at 0.05. On by default.

Show Boxplot by Group

Draws a boxplot of the response by group. Off by default.

Output

Kruskal-Wallis Summary (Context Only)

The overall test. If it is not significant, the output warns you to interpret the pairwise comparisons with caution.

Comparison

The pair of groups compared, for example Control - High.

Z

Standardised test statistic for the pair.

P.unadj

p-value before adjustment.

P.adj

p-value after the chosen adjustment. Use this one to decide significance.

Significant
* YES when P.adj is below 0.05.
Dunn's Test boxplot by group

R functions used: stats::kruskal.test(), FSA::dunnTest(). R package required: FSA.

Last modified: 25 November 2026