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 support for LSD& Tukey multiple comparisons #54

Open lxw748 opened 2 years ago

lxw748 commented 2 years ago

In ecology study, we often apply LSD or Tukey multiple comparisons, which are vital when labeling a batch of significance of experimental result. Most of multiple comparisons methods have been integrated in statmodels.stats.multicomp. You may get more information of multiple comparisons methods from https://zhuanlan.zhihu.com/p/44880434.

sepro commented 2 years ago

We were discussing this before ( https://github.com/trevismd/statannotations/issues/39 ) and it isn't as easy as one might think to support these without a significant re-write. You can however compute these before and use this package to plot the results. I've put up a blog post outlining how to do this.

rbpisupati commented 2 years ago

I have added in a function (https://github.com/rbpisupati/statannotations/commit/53d40eed7efbeef8af66bfa1c59a5ad5dd827fc3). Idea is to add in the letter representation for Tukey's test. The function is very primitive, one need to fix/add it in main function.