blog/kruskal-wallis-test-nonparametric-version-anova/ #96
Replies: 17 comments 28 replies
-
Great post. Thank you for showing me how to do Kruskal-Wallis and relevant post-hoc tests using R: I happen to have to use Mann-Whitney and Kruskal-Wallis tests routinely in data analysis, so this post is especially convenient for transitioning into solely using statistics & R tools. |
Beta Was this translation helpful? Give feedback.
-
Excellent! |
Beta Was this translation helpful? Give feedback.
-
Nice post. It clarified an old doubt I had. Thanks! Can I ask you a question?: |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot! |
Beta Was this translation helpful? Give feedback.
-
Good Day, I grouped a column based on the frequencies through k_means. is it correct? |
Beta Was this translation helpful? Give feedback.
-
Hi, for comparing the samples between two groups, I have 18 observation in each group. Also, there are 6 variables in each group and the variables are correlated to each other. I know that MANOVA in such cases is the relevant statistical test but in my case with such a very small dataset , what is the non-parametric test equivalent to MANOVA? |
Beta Was this translation helpful? Give feedback.
-
Very useful post! But I still have one question: when do you need to use the Dunn's test and when the Pairwise Wilcoxon test? |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for your detailed and clear explanation. I have a question, I want to perform a post-hoc analysis on a dataset with 16 groups. Instead of comparing all groups, I want to compare with a reference group (similar to Dunnett’s test for ANOVA). I wonder if there is an equivalent version of post-hoc analysis for the Kruskal-Wallis test. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Very helpful post, thank you! I did the Kruskal-Wallis test on my data which gave a significant result (P = < 0.05). However, Dunn's post hoc test returned no significant difference between any group. Can you explain why I first get a significant result but then in the multiple comparisons the differences are ns? |
Beta Was this translation helpful? Give feedback.
-
Hi Antoine, Thanks for your reply to @Lindiida post, it is really helpful. I have an additional question. Could you please provide some examples or links on how to conduct the task: decrease the number of pairwise comparisons by comparing groups only with a "control" group (similar to the Dunnett's test after an ANOVA). ? Thank you. Best wishes, |
Beta Was this translation helpful? Give feedback.
-
I would agree with what Antonie wrote. Actually, in my field of plant genetics we routinely use Krustal-Wallis test for non-parametric data; and Bonferroni correction is applied. Though one might say it is simply to apply Bonferroni correction - because you just divide the global α-level by number of comparing groups, I find it more challenging than other correction approaches. One would have to critically think about the biological meaning of every comparison prior to their inclusion in the test, and thus the division factor will only be decided after one has thought thoroughly from a biology standpoint. On the other hand, it is exactly because of this challenge that I prefer Bonferroni correction approach to the others, so as to figure out results that are actually biologically meaningful.
|
Beta Was this translation helpful? Give feedback.
-
Hello, thank you for this clear post. One thing I am still unsure about: It is stated that the Kruskal-Wallis test is the equivalent of a one-sided ANOVA. But I cannot find any option to specify the direction of the effect. How do I know what direction hypothesis I am testing during the test. Is it true that Kruskal-Wallis is automatically one-sided? Or is it generally two-way? If so, how can I change it and specifically mention the direction I want to test (similar to the "alternative="less"/"greater"" in the Mann-Whitney-U test? Looking forward to your answer. Best, Clara |
Beta Was this translation helpful? Give feedback.
-
If I am not mistaken, the Kruskal-wallis test is by definition a one-way non-parametric test. For two-way counterpart, I'm thinking of Friedman test. Antoine, please help to check my points too ( +:
|
Beta Was this translation helpful? Give feedback.
-
Oh, I kind of missed the other point mentioned by Clara. I don't think the "one-way" means "one-sided" (i.e. less than OR greater). By your way of "wording", the Kruskal-wallis test might be considered "two-sided", because it would show whether there is difference in medians among compared groups.
|
Beta Was this translation helpful? Give feedback.
-
Hi Antoine, Thank you for your detailed post. May I have a question? I have difficulty when show results after comparing 5 groups, Kruskal Wallis test for checking the general differences, and Dunn test for checking the difference between two groups. How to show the results in a clear and understandable way. Thank you |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response.
With 5 groups and pairwise comparision, I have 10 p values and I'' still
struggling how to present this results effectively without confusing.
Should I make another table about p values when comparing each 2 groups?
Thanks in advance
|
Beta Was this translation helpful? Give feedback.
-
Thank you for your advice
|
Beta Was this translation helpful? Give feedback.
-
blog/kruskal-wallis-test-nonparametric-version-anova/
Learn how to perform the Kruskal-Wallis test in R (the nonparametric version of the ANOVA) to compare 3 groups or more under the non-normality assumption
https://statsandr.com/blog/kruskal-wallis-test-nonparametric-version-anova/
Beta Was this translation helpful? Give feedback.
All reactions