Perform Kruskal wallis and dunn post-hoc test

dunn(trat, resp, method = "holm", alpha = 0.05, decreasing = TRUE)

Arguments

trat

Numerical or complex vector with treatments

resp

Vector with response

method

the p-value for multiple comparisons ("none", "bonferroni", "sidak", "holm", "hs", "hochberg", "bh", "by"). The default is no adjustment for multiple comparisons

alpha

Significance level of the post-hoc (default is 0.05)

decreasing

Should the order of the letters be increasing or decreasing.

Value

Kruskal-wallis and dunn's post-hoc test returns

Author

Gabriel Danilo Shimizu, shimizu@uel.br

Examples

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
#>