You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to thank you for this very interesting package.
I need help with interpretation and clarifying certain values.
I calculated an apoptosis score for two cell samples. BASE cells and LPS cells. And I would like to see if there is a significant statistical difference between the 2 groups.
For group 1 the sample size is 8126 cells and for group 2 the sample size is 7942 cells.
Naively I did a Wilcoxon test between these two groups.
Wilcoxon rank sum test with continuity correction
data: group1 and group2
W = 42939709, p-value < 2.2e-16
alternative hypothesis: true location shift is not equal to 0
Conclusion :
The p-value < 2.2e-16 suggests that there is a statistically significant difference in the ApoptosisScores between the two groups. Therefore, you can reject the null hypothesis that the distributions of the ApoptosisScores in the two groups are the same.
Then I discovered the ggstatsplot package.
After reading the documentation I decided to use ggbetweenstats function between the two groups. According to the documentation : Non-parametric 2 Mann-Whitney U test [stats::wilcox.test()](https://rdrr.io/r/stats/wilcox.test.html)
I decided to set type="nonparametric" in order to find the value of p.value obtained previously.
Here the code used :
p <- ggbetweenstats(
data = apoptosis_data,
x = orig.ident,
y = ApoptosisScore1,
type = "nonparametric",
ylab = "Apoptosis score",
xlab = "Condition",
title = "Distribution of Apoptosis Score across condition"
)
Give :
I am wondering why the test statistic (W) is different when i ran wilcoxon.test in one hand (W = 42939709) and the test statistic gave on the plot : 2.16e+07 ?
I need help !
Thanks.
Maxime
The text was updated successfully, but these errors were encountered:
I would like to thank you for this very interesting package.
I need help with interpretation and clarifying certain values.
I calculated an apoptosis score for two cell samples. BASE cells and LPS cells. And I would like to see if there is a significant statistical difference between the 2 groups.
For group 1 the sample size is 8126 cells and for group 2 the sample size is 7942 cells.
Naively I did a Wilcoxon test between these two groups.
and
Perform wilcoxon rank sum test :
That give :
Conclusion :
The p-value < 2.2e-16 suggests that there is a statistically significant difference in the ApoptosisScores between the two groups. Therefore, you can reject the null hypothesis that the distributions of the ApoptosisScores in the two groups are the same.
Then I discovered the ggstatsplot package.
After reading the documentation I decided to use ggbetweenstats function between the two groups. According to the documentation :
Non-parametric 2 Mann-Whitney U test [stats::wilcox.test()](https://rdrr.io/r/stats/wilcox.test.html)
I decided to set type="nonparametric" in order to find the value of p.value obtained previously.
Here the code used :
Give :
I am wondering why the test statistic (W) is different when i ran wilcoxon.test in one hand (W = 42939709) and the test statistic gave on the plot : 2.16e+07 ?
I need help !
Thanks.
Maxime
The text was updated successfully, but these errors were encountered: