[R] Wilcoxon Signed Rank Test
Torsten Hothorn
Torsten.Hothorn at rzmail.uni-erlangen.de
Wed Aug 24 13:31:12 CEST 2005
> 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?
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
> 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
>
> --
> Jeanie (Jie) Na
>
> Programmer Analyst II _ _ ___ _ _ ____
> Department of Quantitative Health Sciences [_]-[_] / - \ | |_| | (_(_
> Cleveland Clinic Foundation | | ( |_| ) ) _ ( _| )
> Tel: (216)4451369 [_]-[_] \_\_\ |_| |_| (___/
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>
More information about the R-help
mailing list