search for: wilcoxsign_test

Displaying 5 results from an estimated 5 matches for "wilcoxsign_test".

2011 Apr 12
2
The three routines in R that calculate the wilcoxon signed-rank test give different p-values.......which is correct?
I have a question concerning the Wilcoxon signed-rank test, and specifically, which R subroutine I should use for my particular dataset. There are three different commands in R (that I'm aware of) that calculate the Wilcoxon signed-rank test; wilcox.test, wilcox.exact, and wilcoxsign_test. When I run the three commands on the same dataset, I get different p-values. I'm hoping that someone can give me guidance on the strengths and weaknesses of each command, why they produce different p-values, and which one is the most appropriate for my particular needs. First, let me descr...
2011 Oct 31
2
one sample Wilcoxon test using 'coin'
Hi, R allows me to run a one sample Wilcoxon test like this: wilcox.test(c(1,3.5,2.1,4,1.5,5), mu=2, exact=TRUE) The function 'wilcoxsign_test' from the package 'coin' should (I suppose) be able to calculate exact p values even if there are ties in the ranks. However, I couldn't find information on how to run a one sample test using 'wilcoxsign_test' like in the example above. Can anybody help? Thanks,...
2012 Jul 12
1
permutation test on paired samples
...ot;greater") Then I wanted to use the package 'coin': require("coin") x <- c(1.83,0.50,1.62,2.48,1.68,1.88,1.55,3.06,1.30) y <- c(0.878,0.647,0.598,2.05,1.06,1.29,1.06,3.14,1.29) xydat <- data.frame(y = c(y,x),x = gl(2,length(x)),block = factor(rep(1:length(x),2))) wilcoxsign_test(y ~ x | block,data = xydat,alternative = "greater",distribution = exact()) oneway_test(y ~ x | block,data = xydat,alternative = "greater",distribution = exact()) While the results of the Wilcoxon test are the same for both packages are the same, those of the permutation test ar...
2010 Feb 08
1
Wilcoxon signed-ranks test using package coin ?
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?
2009 Sep 08
0
feature and bug in wilcox.test
...wilcox.test with the paired=T option appears to delete zeros before ranking absolute differences. Would it be possible to add the feature of removing zeros after ranking, which is given in Lehmann's Nonparametrics as the preferred choice. See also Pratt (1959), JASA 54, 655-667. It is given in wilcoxsign_test of the coin package as an option through the argument ties="Pratt" as opposed to ties="HollanderWolfe" (default). I understand this this might be more difficult for wilcox.test because of the method for calculating the null distribution. 2. For the following two samples Augment...