trevismd / statannotations

add statistical significance annotations on seaborn plots. Further development of statannot, with bugfixes, new features, and a different API.
Other
624 stars 67 forks source link

Add paired t-test greater and less than comparisons #85

Open Magnushhoie opened 1 year ago

Magnushhoie commented 1 year ago

Add t-test_paired-gt and t-test_paired-ls to StatTest. Currently only the two-sided alternative of paired t-test is available, while e.g. Mann-Whitney provides all three.

Follows the same naming scheme and passes automated tests and manual testing.

trevismd commented 1 year ago

Oh, and perhaps it's worth doing that for independent samples as well, then?

Magnushhoie commented 1 year ago

Hi Trevis,

Sure, tried to add some basic tests for matching p-values. I am struggling to figure out how the TestStatTest tests in tests/test_annotation.py are actually run. I hope the logic will work like it does when I coded it manually.