Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions statannotations/stats/StatTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ def short_name(self):
't-test_ind': StatTest(stats.ttest_ind,
't-test independent samples',
't-test_ind', 't'),

't-test_paired-gt': StatTest(stats.ttest_rel,
't-test paired samples', 't-test_rel', 't',
alternative="greater"),

't-test_paired-ls': StatTest(stats.ttest_rel,
't-test paired samples', 't-test_rel', 't',
alternative="less"),

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move these below the two-sided counterpart and fix the alignment of the 2nd and 3rd lines?


't-test_welch': StatTest(stats.ttest_ind,
'Welch\'s t-test independent samples',
Expand Down
3 changes: 2 additions & 1 deletion statannotations/stats/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
from statannotations.stats.StatResult import StatResult
from statannotations.stats.StatTest import StatTest

IMPLEMENTED_TESTS = ['t-test_ind', 't-test_welch', 't-test_paired',
IMPLEMENTED_TESTS = ['t-test_ind', 't-test_welch',
't-test_paired', 't-test_paired-gt', 't-test_paired-ls',
Comment on lines +10 to +11

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
IMPLEMENTED_TESTS = ['t-test_ind', 't-test_welch',
't-test_paired', 't-test_paired-gt', 't-test_paired-ls',
IMPLEMENTED_TESTS = ['t-test_ind', 't-test_welch',
't-test_paired', 't-test_paired-gt', 't-test_paired-ls',

'Mann-Whitney', 'Mann-Whitney-gt', 'Mann-Whitney-ls',
'Levene', 'Wilcoxon', 'Kruskal', 'Brunner-Munzel']

Expand Down