Closed davwul closed 3 weeks ago
scikit_posthocs.posthoc_dunn
is not applicable in your case as it is indeed for independent data and should be done after Kruskal-Wallis test.
scikit_posthocs.posthoc_siegel_friedman
is the test you are looking for. All tests that can be used with dependent data have _friedman
postfixes. There are some discrepancies in the naming of these tests. From GraphPad's website:
Following Friedman's test, Prism can perform Dunn's post test. For details, see Applied Nonparametric Statistics by WW Daniel, published by PWS-Kent publishing company in 1990 or Nonparametric Statistics for Behavioral Sciences by S Siegel and NJ Castellan, 1988. The original reference is O.J. Dunn, Technometrics, 5:241-252, 1964. Note that some books and programs simply refer to this test as the post test following a Friedman test and don't give it an exact name.
So, this is not an issue.
Hello!
I've been working on using statistics in Python and move away from relying on GraphPad Prism. I had some difficulties replicating the Friedman test with Dunn's correction that I was using in Prism. [https://www.graphpad.com/guides/prism/latest/statistics/how_the_friedman_test_works.htm]
Two things:
1) when I used my data with 'scikit_posthocs.posthoc_dunn' I end up doing a Kruskal-Wallis Dunn's test, which I assume happens because the data is treated as independent while it is in fact dependent (repeated)? Am I supposed to do some data formating beforehand?
2) I tried using the different friedman posthoc tests for Blocked Replicated data (which I have). I ended up trying nemenyi, conover and siegel, and siegel was the test that was able to exacly replicate my Prism results.
Any ideas why this is the case? How do you perform a Friedman Dunn's test (bonferroni correction) using scikit_posthocs.posthoc_dunn and any thoughts on why scikit_posthocs.posthoc_siegel_friedman replicated my Prism results?
Here is modified version of my dataset:
David