Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust wilcoxon test warning messages when all the values are constant #27

Open
karoliskoncevicius opened this issue Nov 26, 2021 · 0 comments
Assignees
Labels

Comments

@karoliskoncevicius
Copy link
Owner

Currently row_wilcoxon_twosample does not produce a warning when all the values are constant and equal to the NULL:

row_wilcoxon_twosample(c(1,1,1), c(2,2,2), exact=FALSE, null=1)
# NaN p-value but no warning

In a similar situation row_wilcoxon_onesample() can end up producing three warnings for the same row:

row_wilcoxon_onesample(c(0,0,0))
# 3 separate warnings are produced

And the above issue is also present in a paired version.

Solution: add the warning for "twosample" case and adjust the warnings so that only one is produced at the time.

@karoliskoncevicius karoliskoncevicius changed the title Adjust wilcoxon test warning messages when all the values are constant. Adjust wilcoxon test warning messages when all the values are constant Nov 26, 2021
@karoliskoncevicius karoliskoncevicius added this to the 0.2 milestone Jan 6, 2022
@karoliskoncevicius karoliskoncevicius self-assigned this Feb 17, 2022
@karoliskoncevicius karoliskoncevicius removed this from the 0.2 milestone Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant