Displaying 20 results from an estimated 10000 matches similar to: "The three routines in R that calculate the wilcoxon signed-rank test give different p-values.......which is correct?"
2003 Dec 01
2
wilcoxon-pratt signed rank test in R - drug-effiacy
Hi.
I'm going to introduce the R-package for a group of medical doctors later
this week and is a little confused about there use of a test named
"willcoxon-pratt" for testing if the clinical and biochemical markers has
decreased significantly after the use of some drugs for a group of patients.
Looking into the R-functions I would in R recommand using a matched-pairs
Wilcoxon
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
2012 Jul 12
1
permutation test on paired samples
Hi,
I'm trying to run a permutation test on paired samples.
First I tried the package "exactRankTests":
require("exactRankTests")
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)
wilcox.test(x,y,paired = TRUE,alternative = "greater")
perm.test(y,x,paired = TRUE,exact = TRUE,alternative =
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
Dear Developers Team,
I have two items:
1. 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
2003 Jun 11
1
qwilcox
The function 'wilcox.test' in R and S gives (almost) identical results (see
below). 'qwilcox' however, does not:
> qwilcox(p,5,5)
p: 0.025 0.975
--------------------
R> 3 22
S> 18 37
I originally wanted to ask a questions, but then I found the answer. Given
the confusion I run into, I wonder if this experience is worth reporting.
The
2005 May 04
4
rank of a matrix
how do I check the rank of a matrix ?
say
A= 1 0 0
0 1 0
then rank(A)=2
what is this function?
thanks
I did try help.search("rank"), but all the returned help information
seem irrelevant to what I want.
I would like to know how people search for help information like this.
rank(base) Sample Ranks
SignRank(stats) Distribution of the
2000 Dec 18
2
Help: StatXact
Help needed!
Has anyone access to StatXact? I just hacked exact two-sided p-values for
rank tests (for package exactDistr, which will move to CRAN/contrib as
exactRankTests soon ;-) and would like to compare the results of my
implementation to that of StatXact. Could someone please calculate the
exact one-sided (both greater and less) and two-sided p-values?
# Data from the StatXact-4 manual,
2019 Dec 12
2
Inconsistencies in wilcox.test
>>>>> Karolis Koncevi?ius
>>>>> on Mon, 9 Dec 2019 23:43:36 +0200 writes:
> So I tried adding Infinity support for all cases.
> And it is (as could be expected) more complicated than I thought.
"Of course !" Thank you, Karolis, in any case!
> It is easy to add Inf support for the test. The problems start with conf.int=TRUE.
2009 Oct 23
4
How to apply the Wilcoxon test to a hole table at once?
Hi,
I have a data set:
> Dataset
X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17
1 user1 m 22 19 28 24 12 18 9 7 4 5 4 7 5 7 9
2 user2 f 25 19 23 18 18 15 6 8 6 6 7 10 7 7 7
3 user3 f 28 21 24 18 15 12 10 6 7 9 5 10 5 9 5
4 user4 f 26 19 26 21 12 18 6 6 5 1 3 8 6 5 6
5 user5 m 21 22 26 18 9 6 4 6 1
2010 Jun 23
3
Wilcoxon signed rank test and its requirements
Hi all,
I have a distribution, and take a sample of it. Then I compare that sample with the mean of the population like here in "Wilcoxon signed rank test with continuity correction":
> wilcox.test(Sample,mu=mean(All), alt="two.sided")
Wilcoxon signed rank test with continuity correction
data: AlphaNoteOnsetDists
V = 63855, p-value = 0.0002093
alternative hypothesis:
2019 Dec 07
2
Inconsistencies in wilcox.test
Thank you for a fast response. Nice to see this mailing list being so
alive.
Regarding Inf issue: I agree with your assessment that Inf should not be
removed. The code gave me an impression that Inf values were
intentionally removed (since is.finite() was used everywhere, except for
paired case). I will try to adjust my patch according to your feedback.
One more thing: it seems like you
2010 Aug 09
1
Difference Between R: wilcox.test and STATA: signrank
This is my first post to the mailing list and I guess it's a pretty stupid
question but I can't figure it out. I hope this is the right forum for these
kind of questions.
Before I started using R I was using STATA to run a Wilcoxon signed-rank
test on two variables. See data below:
2006 Aug 25
1
exact Wilcoxon signed rank test with ties and the "no longer under development" exactRanksumTests package
Dear List,
after updating the exactRanksumTests package I receive a warning that
the package is not developed any further and that one should consider
the coin package.
I don't find the signed rank test in the coin package, only the Wilcoxon
Mann Whitney U-Test. I only found a signed rank test in the stats
package (wilcox.test) which is able to calculate the exact pvalues but
unfortunately
2003 Oct 07
3
FW: Optimising code
>> I have a function that applies a wilcoxon test to 12 sets of about a quarter of a million pairs
> ... and let me guess: everything is significiant to an almost arbitrary
> value of \alpha?
:-) For each of quarter of a million sets, I do a wilcoxon between two pairs each containing twenty numbers...
I do this 12 times...
> > (and takes about 3 hours). I've replaced the
2010 Nov 24
2
Wilcoxon Rank Sum in R with a multiple testing correction
Hi there,
I'm a total newbie to R. I'd like to use a Wilcoxon Rank Sum test to compare
two populations of values. Further, I'd like to do this simultaneously for
114 sets of values. The two populations are C and N. The different sets of
values have arbitrary names (I'll call them a, b, c etc). The set-up is as
follows:
a b c d ....
C 2
C 3
C 5
C 9
C 4
2012 Nov 25
2
Finding the Degrees of Freedom in a Wilcoxon Test
Dear R-ers,
I am currently running some Wilcoxon tests in R-64.
How do I find the degrees of freedom in the output I am receiving?
> wilcox.test(good$TRUE, good$x4a, paired=FALSE)
Wilcoxon rank sum test with continuity correction
data: good$TRUE and good$x4a
W = 2455, p-value < 2.2e-16
alternative hypothesis: true location shift is not equal to 0
Thank you,
Stephen.
2005 May 16
1
Mann-Whitney & Wilcoxon Rank Sum
Hello,
I am hoping someone could shed some light into the Wilcoxon Rank Sum Test
for me? In looking through Stats references, the Mann-Whitney U-test and
the Wilcoxon Rank Sum Test are statistically equivalent. When using the
following dataset:
m <- c(2.0863,2.1340,2.1008,1.9565,2.0413,NA,NA)
f <- c(1.8938,1.9709,1.8613,2.0836,1.9485,2.0630,1.9143)
and the wilcox.test command as
2012 May 29
2
Wilcoxon-Mann-Whitney U value: outcomes from different stat packages
Given this example
#start code
a<-c(0,70,50,100,70,650,1300,6900,1780,4930,1120,700,190,940,
760,100,300,36270,5610,249680,1760,4040,164890,17230,75140,1870,22380,5890,2430)
b<-c(0,0,10,30,50,440,1000,140,70,90,60,60,20,90,180,30,90,
3220,490,20790,290,740,5350,940,3910,0,640,850,260)
wilcox.test(a, b, paired=FALSE)
#sum of rank for first sample
sum.rank.a <-
2010 Nov 24
3
Límites de confianza de la mediana en distribuciones simétricas
Por si alguno pudiera ayudarme.
Al realizar el t.test para una muestra, junto con el valor de t y el
p-valor, la función proporciona la estimación de la media y su INTERVALO
DE CONFIANZA.
Desde el punto de vista de la estadística de rangos esto se puede hacer
mediante:
> iris$MEDIANA <- with(iris, 2.95)
> median(iris$Sepal.Width - iris$MEDIANA, na.rm=TRUE) # median difference
[1]