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
How can be p>0.05 if the CI doesn't cover 0?
It cannot be.
The CI is calculated wrongly by the underlying wilcox.test, which warns us about the fact the confidence level couldn't be reached.
The warning may prevent the user from reporting nonsenses. Hiding it (e.g. by wrapping with suppressWarnings()) - may cause put one into real troubles, if one is going to publish it.
wilcox.test(Result ~ Timepoint, data=d, paired=TRUE, conf.int=TRUE)
Wilcoxon signed rank test with continuity correction
data: Result by Timepoint
V = 0, p-value = 0.1
alternative hypothesis: true location shift is not equal to 0
60 percent confidence interval:
-5 -1
sample estimates:
(pseudo)median
-1.71
Warning messages:
1: In wilcox.test.default(x = c(0, 6, 0, 0, 0, 0, 1, 3, 1, 1, 3, 7), :
requested conf.level not achievable
2: In wilcox.test.default(x = c(0, 6, 0, 0, 0, 0, 1, 3, 1, 1, 3, 7), :
cannot compute exact p-value with ties
3: In wilcox.test.default(x = c(0, 6, 0, 0, 0, 0, 1, 3, 1, 1, 3, 7), :
cannot compute exact confidence interval with ties
4: In wilcox.test.default(x = c(0, 6, 0, 0, 0, 0, 1, 3, 1, 1, 3, 7), :
cannot compute exact p-value with zeroes
5: In wilcox.test.default(x = c(0, 6, 0, 0, 0, 0, 1, 3, 1, 1, 3, 7), :
cannot compute exact confidence interval with zeroes
The text was updated successfully, but these errors were encountered:
Hello, @kassambara just wanted to ask, is you had a chance to fix this issue with suppressWarnings? I'd like to use this package in near future and recommend to a friend of mine, but this one is very dangerous.
Let's take this data:
Let's check the result:
How can be p>0.05 if the CI doesn't cover 0?
It cannot be.
The CI is calculated wrongly by the underlying wilcox.test, which warns us about the fact the confidence level couldn't be reached.
The warning may prevent the user from reporting nonsenses. Hiding it (e.g. by wrapping with suppressWarnings()) - may cause put one into real troubles, if one is going to publish it.
The text was updated successfully, but these errors were encountered: