Given the following data, and hypothesized median M.0 I've found a
method to implement the Wilcoxon signed-rank test.

Data: (with one zero difference and tied ranks)

x <- c(136, 103, 91, 122, 96, 145, 140, 138, 126, 120, 99, 125,
91,142, 119, 137)
M.0 <- 119

> library(exactRankTests)
  Package ‘exactRankTests’ is no longer under development.
  Please consider using package ‘coin’ instead.

> wilcox.exact(x, mu=M.0)

        Exact Wilcoxon signed rank test

data:  x
V = 65.5, p-value = 0.771
alternative hypothesis: true mu is not equal to 119


I've been unable to implement this test using library(coin) - is this possible?

Thanks.  --Dale

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to