Skip to content

Wilcoxon Signed Rank Test

2 messages · Jeanie (Jie) Na, Torsten Hothorn

#
Dear list,

Please forgive me if this is a dumb question. I want to compare a set of
paired data (pre and late). There are ties in pre and late. I searched
on line, some document says use wilcox.exact in R instead of
wilcox.test. Anyone has any experience using wilcoxon signed rank test
to share? 
Thanks in advance.

platform i686-pc-linux-gnu
arch     i686             
os       linux-gnu        
system   i686, linux-gnu  
status                    
major    2                
minor    1.0              
year     2005             
month    04               
day      18               
language R
#
R> library("exactRankTests")
R> x <- c(1.83,  0.50,  1.62,  2.48, 1.68, 1.88, 1.55, 3.06, 1.30)
R> y <- c(0.878, 0.647, 0.598, 2.05, 1.06, 1.29, 1.06, 3.14, 1.29)
R> wilcox.exact(x, y, paired = TRUE, alternative = "greater")

        Exact Wilcoxon signed rank test

data:  x and y
V = 40, p-value = 0.01953
alternative hypothesis: true mu is greater than 0

is one of the examples shown in ?wilcox.exact

Best,

Torsten