statannotations icon indicating copy to clipboard operation
statannotations copied to clipboard

One-sided t-test

Open juuf opened this issue 3 years ago • 3 comments

It would be great if one could set a dynamic tail for a one-sided t-test. I.e. instead of having a static value

annotator.apply_test(alternative='greater')

one could input an array determining which tail should be evaluated for which pair combination.

juuf avatar Jul 26 '22 12:07 juuf

Related to #58.

kuchaale avatar Aug 26 '22 09:08 kuchaale

I think it can be done rather simply, maybe with something like

class Annotator:
    ...
    def apply_test(self, num_comparisons='auto', pairs_stats_params=None, **stats_params):

called with

# if there were two pairs 
pairs_stats_params = {'alternative': ['greater', 'less']}
annotator.apply_test(pairs_stats_params=pairs_stats_params, nan_policy='omit')

alternative would be distributed and nan_policy would still be used for each call.

(no conclusion for #58 yet)

trevismd avatar Oct 18 '22 19:10 trevismd

Looking forward to the update!

Kang1121 avatar Jan 04 '23 07:01 Kang1121