dunn.Rd
Perform Kruskal wallis and dunn post-hoc test
dunn(trat, resp, method = "holm", alpha = 0.05, decreasing = TRUE)
Numerical or complex vector with treatments
Vector with response
the p-value for multiple comparisons ("none", "bonferroni", "sidak", "holm", "hs", "hochberg", "bh", "by"). The default is no adjustment for multiple comparisons
Significance level of the post-hoc (default is 0.05)
Should the order of the letters be increasing or decreasing.
Kruskal-wallis and dunn's post-hoc test returns
library(AgroR)
data(pomegranate)
with(pomegranate, dunn(trat, WL))
#> $Statistic
#> Kruskal-Wallis chi-squared
#> 18.75631
#>
#> $`p-value`
#> [1] 0.002133687
#>
#> $`Post-hoc`
#> group Sum.Rank Mean.Rank Mean Median dunn
#> T1 T1 23 5.75 1.8425 1.795 ab
#> T2 T2 14 3.50 1.6775 1.675 b
#> T3 T3 73 18.25 2.6175 2.620 a
#> T4 T4 69 17.25 2.6200 2.525 ab
#> T5 T5 78 19.50 2.6375 2.665 a
#> T6 T6 43 10.75 2.1625 2.170 ab
#>