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

wilcox_test p.adjust.method = "none" option doesn't work and padj column missing #194

Open
Rohit-Satyam opened this issue Aug 24, 2023 · 0 comments

Comments

@Rohit-Satyam
Copy link

Rohit-Satyam commented Aug 24, 2023

Dear @kassambara. Thanks for developing this package. It's easy to perform statistical test on multiple sample. But I have an observation (possibly a bug). When running the wilcox_test with p.adjust.method = "none", I expected the p values to be similar to wilcox.test function. However, your function returns adjusted p-values all the time. Also, the column is labeled as p not padj. Can you tell what's wrong ?

> rstatix::wilcox_test(perc ~ sample, data=df_rifin)
# A tibble: 1 × 7
  .y.   group1 group2    n1    n2 statistic        p
* <chr> <chr>  <chr>  <int> <int>     <dbl>    <dbl>
1 perc  16D    16R     3992  2747  6942812. 7.80e-83
> wilcox.test(perc ~ sample, data=df_rifin)

	Wilcoxon rank sum test with continuity correction

data:  perc by sample
W = 6942812, p-value < 2.2e-16
alternative hypothesis: true location shift is not equal to 0

> rstatix::wilcox_test(perc ~ sample, data=df_rifin, p.adjust.method = "none")
# A tibble: 1 × 7
  .y.   group1 group2    n1    n2 statistic        p
* <chr> <chr>  <chr>  <int> <int>     <dbl>    <dbl>
1 perc  16D    16R     3992  2747  6942812. 7.80e-83
> res<-wilcox.test(perc ~ sample, data=df_rifin)
> p.adjust(res$p.value)
[1] 7.796744e-83

Using rstatix_0.7.2 and R version 4.3.1

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

No branches or pull requests

1 participant