statannotations
statannotations copied to clipboard
One-sided t-test
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.
Related to #58.
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)
Looking forward to the update!