-
Notifications
You must be signed in to change notification settings - Fork 165
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
p-values from compare_means() and wilcox.test() are different #141
Comments
I am also having different p values. Here is an example -
##V = 55, p-value = 0.001953
##p value 0.0059 |
same here: set.seed(666) #genrate data #on log2 data p-value = 0.007937#ggpubr p-value = 0.012 |
Fixed now, thanks! When method = "wilcox.test", the function |
Please also remove the |
removed now, thanks |
I found there're different results for wilcox.test(df,mu=xx) and compare_means(df,ref.group='.all.') for one sample test, after digging into the details, I found that compare_means seems to take all values in df as .all. group, and operate a two-sample test(wilcox rank sum) rather than one sample test, which may violate the independent assumption, am I think it in the right way? Here's an easy one to repeat the results: val = c(-0.78137127,-0.86180992,-0.91177614,-0.95413924,-0.80979775, Also, this is the detail of compare_means() function for handing '.all.' |
Hello,
Below is an example:
The p-value from
wilcox.test
is 0.001554 while fromcompare_menas
is 0.00431.Any clue about the cause? Thanks!
Session info:
The text was updated successfully, but these errors were encountered: