gtsummary icon indicating copy to clipboard operation
gtsummary copied to clipboard

Feature request: Kolmogorov-Smirnov's test

Open spiralparagon opened this issue 10 months ago • 0 comments

Is your feature request related to a problem? Please describe. I'd like to be able to use kolmogorov-smirnov's test which is implemented in baseR as ks.test as an alternative to wilcoxon/mannwhitneyU.

Describe the solution you'd like Being able to specify in the add_p function to use "ks.test"

Additional context Wilcoxon makes a strong assumption that the populations tested have the same distribution, it is essentially blind to spread but powerful to test differences in location. Kolmogorov-Smirnovs test is a better test to determine if distributions are equal.

https://stats.stackexchange.com/questions/415889/kolmogorov-smirnov-test-vs-wilcoxon-signed-rank-test-for-two-samples

spiralparagon avatar Apr 07 '24 08:04 spiralparagon