x <- c(9, 5, 9 ,10, 13, 8, 8, 13, 18, 30)
y <- c(10, 6, 9, 8, 11, 4, 1, 3, 3, 10)
wilcox.test(y,x, paired=TRUE,correct = FALSE)
Warning messages occurred when submit these codes. How to avoid warning message in wilcox.test.Thanks!
use
suppressWarnings(wilcox.test(...))
or (better)
wilcox.test(...,exact=FALSE)
or
library(coin)
wilcoxsign_test(y~x,zero="Pratt")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With