I have Likert scale data (283 observations) from two groups are I'm trying to interpret the results of a Wilcoxon rank sum test, not being a statistician.
df <- data.frame(
group = c(FALSE, TRUE, FALSE, TRUE, TRUE, FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, FALSE, FALSE, TRUE, TRUE, TRUE, FALSE, TRUE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, TRUE, TRUE, FALSE, FALSE, TRUE, TRUE, FALSE, FALSE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE, TRUE, TRUE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, FALSE, TRUE, FALSE, FALSE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE, TRUE, FALSE, TRUE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, TRUE, FALSE, TRUE, TRUE, TRUE, FALSE, FALSE, TRUE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE),
value = c(3, 4, 5, 4, 5, 5, 4, 4, 4, 4, 4, 5, 2, 4, 4, 4, 5, 5, 5, 5, 4, 4, 4, 4, 2, 2, 5, 4, 4, 4, 5, 4, 4, 4, 4, 4, 4, 3, 4, 5, 4, 3, 3, 3, 4, 5, 4, 4, 4, 4, 5, 3, 4, 3, 4, 5, 4, 5, 4, 4, 4, 4, 3, 4, 5, 4, 5, 4, 4, 5, 5, 4, 5, 5, 4, 3, 4, 4, 4, 4, 4, 5, 4, 4, 4, 4, 4, 4, 3, 3, 4, 5, 4, 4, 4, 4, 4, 4, 4, 5, 5, 3, 4, 2, 3, 3, 3, 4, 4, 4, 4, 4, NA, 5, 4, 3, 5, 4, 4, 4, 4, 4, 3, 4, 3, 5, 4, 4, 4, 5, 5, 4, 4, 4, 4, 4, 3, 3, 5, 5, 5, 4, 4, 4, 3, 4, 4, 4, 4, 4, 2, 4, 4, 5, 4, 4, 4, 4, 5, 4, 4, 5, 4, 4, 5, 4, 4, 4, 4, 4, 5, 4, 4, 4, 4, 4, 4, 4, 5, 3, 3, 4, 3, 5, 4, 4, 3, 4, 4, 4, 4, 4, 3, 5, 5, 4, 5, 4, 4, 5, 4, 4, 5, 5, 4, 4, 4, 3, 4, 4, 3, 5, 4, 4, 4, 5, 4, 4, 4, 5, 2, 5, 3, 3, 4, 4, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 4, 3, 4, 4, 4, 4, 4, 3, 3, 4, 4, 4, 4, 3, 4, 4, 4, 5, 3, 5, 5, 5, 4, 4, 4, 5, 4, 4, 4, 4, 4, 4, 3, 4, 5, 5, 4, 3, 5, 5, 4, 2, 4, 3, 3)
)
ggplot(df) +
geom_jitter(aes(x = group, y = value, color = group, fill = group), width = 0.2, height = 0.2, shape = 21, size = 3) +
stat_summary(aes(x = group, y = value), fun = "mean", shape = 4, size = 1) +
scale_color_manual(values = c("#00afbb", "#e7b800")) +
scale_fill_manual(values = alpha(c("#00afbb", "#e7b800"), 0.4))
> wilcox.test(value ~ group, data = df, conf.int = TRUE)
Wilcoxon rank sum test with continuity correction
data: value by group
W = 10719, p-value = 0.04501
alternative hypothesis: true location shift is not equal to 0
95 percent confidence interval:
-3.977585e-05 6.844053e-05
sample estimates:
difference in location
6.195797e-06
First of all I'm surprised to see a significant difference given the seemingly rather similar distributions and the fact that this is a non-parametric test. Given the very small "difference in location" (which seems to correspond to the median difference between samples from both groups), should I conclude that "the difference is significant but negligible"? What also puzzles me is the fact that the confidence interval is centered around 0, I did not expect this given the significant difference.