Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

p-value and stats returning 'nan' except for Mann-Whitney test #61

Open
lucindasisk opened this issue Oct 28, 2020 · 1 comment
Open

Comments

@lucindasisk
Copy link

Hi! I am attempting to use add_stat_annotation to add t-test statistics for group differences to a bar plot, but keep getting 'nan' for the returned p and t values. I have resorted to using the scipy t-test_ind function to compute these prior and add them using add_stat_annot manually, but would be great to know if there is a way to fix this! I also tried out the other available tests, and got nans for all except the Mann-Whitney test. Of note, my x variable is a categorical variable containing 1s, 2s, and 3s, and my y variable is a continuous variable with no 0s or nans. Thanks for any insight!

@trevismd
Copy link

I know it's late, but would you be willing to show minimal data that leads to this situation, as well as your specific calls to barplot and add_stat_annotation?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants