Displaying 20 results from an estimated 2000 matches similar to: "Confidence interval in the Wilcoxon exact test"
2006 Sep 29
1
Wilcoxon Rank test of Package Coin
Hi,
I am running the following example which can be found on page 12 of the pdf file of COIN package
wt<-wilcox_test(pd~age,data=water_transfer,distribution="exact", conf.int=TRUE)
"wt" actually contains the estimate of difference in location and the confidence interval of it. I am just wondering how can I extract these values? From the examples, I understand that the
2006 Oct 05
1
The W statistic in wilcox.exact
Does anyone know why wilcox.exact gives W-statistic 6 instead of 12 as indicated below.
12 is the rank sum of group 0 of x, which is the linear statistic computed by wilcox_test.
y<-c(1,2,3,4,5)
x<-c(1,1,0,0,0)
(a) wilcox.exact
wilcox.exact(y~x)
Exact Wilcoxon rank sum test
data: y by x
W = 6, p-value = 0.2
alternative hypothesis: true mu is not equal to 0
(b) wilcox_test
2006 Sep 29
3
if then else
What is the correct form to write statement meaning:
if (a==1) {b=2; c=3}; else {b=0; c=0};
Thank you
Jue Wang, Biostatistician
Contracted Position for Preclinical & Research Biostatistics
PrO Unlimited
(908) 231-3022
2013 May 30
1
wilcox_test function in coin package
Dear All,
I have two simple data samples (no groups or factors, etc.) and would just
like to compute the two-sample Wilcoxon Rank Sum test using the wilcox_test
function contained in the coin package, which is reportedly better than the
regular wilcox.test function because it performs some adjustment for ties.
Would anyone know how to craft a script to perform this task? Much
appreciated.
Janh
2006 Oct 12
1
Draw a circle at the end of a line
I have a plot of cumulative distribution function which is a step function,
I'd like to put a cycle at the right end of each line to indicate that the value here is not available in this line.
How can I do that?
Thank you.
cdf<-function(x){
do.call("rbind",lapply(1:nrow(as.matrix(x)), function(i){
a<-x[i]
if (a<0.5){b=0.1}
else if (a<1){b=0.3}
else if
2006 Oct 13
1
side by side plot of Histogram and densityplot
Using "par" seems easily put a "hist" and a density side by side on the same output window.
I would like to use some features in "histogram" from Lattice, but how can I put
"histogram" and "densityplot" side by side on the same graph?
Thank you
par(mfrow=c(2,1))
hist(y)
plot(density(y))
Jue Wang, Biostatistician
Contracted Position for
2010 Aug 17
3
Weird differing results when using the Wilcoxon-test
Hi,
I became a little bit confused when working with the Wilcoxon test in R.
As far as I understood, there are mainly two versions:
1) wilcox.test{stats}, which is the default and an approximation, especially,
when ties are involved
2) wilcox_test{coin}, which does calculate the distribution _exactly_ even,
with ties.
I have the following scenario:
#---BeginCode---
# big example
size = 60
2008 Jan 16
0
Exact wilcoxon may differ in R and SPSS/StatXact (due to round off in the latter pair)
Dear R-users,
If you use the exact Wilcoxon test in the coin package, I would like
make you aware of that SPSS/StatXact MAY perform a round-off before
doing their exact Wilcoxon-Mann-Whitney test (if you ever are unlucky
enough not to use R).
I have data from two treatments and was surprised to find that SPSS (15
under Windows) and R differed in their p-values (0.167 resp. 0.172). It
turns out
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
2005 Dec 20
1
Wilcoxon Mann-Whitney Rank Sum Test in R
An earlier post had posed the question: "Does anybody know what is relation
between 'T' value calculated by 'wilcox_test' function (coin package) and
more common 'W' value?"
I found the question interesting and ran the commands in R and SPSS. The W
reported by R did not seem to correspond to either Mann-Whitney U,
Wilcoxon W or the Z which I have more
2006 Oct 12
1
Arrange histogram
The data set has a number of variables each of which is classified into two groups.
For each variable of each group, I need to create a histogram. All the histograms are to be lined up into a file that looks like
group1 group2
Variable 1 Histogram histogram
Variable 2 Histogram histogram
...........................
Can you give me a hint as to what
2008 Jan 26
1
How to apply the wilcox_test function to subsets ?
Dear R-forumites,
I want to apply a Wilcoxon test on subsets of the data frame mydata,
splitted using the myindice variable. When I send :
wilcoxtest <- by(mydata, mydata$myindice, function(x)
{wilcox_test(x$value~x$fact)})
I get :
Error in eval(expr, envir, enclos) : object "x" not found
whereas
wilcoxtest <- by(mydata, mydata$myindice, function(x)
2009 Oct 27
1
wilcox.exact() problem
Dear R friends,
here I write again about the wilcox.exact() problem. I want to compare two sets of categorical data, and in one case it says "negative length vectors not allowed", and in the other one I get the error "cannot allocate vector of length ...".
On http://rapidshare.com/files/298621893/wilcox.exact_trouble.Rdata.html you can download the data that cause the
2005 Nov 14
1
effect sizes for Wilcoxon tests
Hello,
I use t.test for normal distributed and wilcox.test for non-normal
distributed samples.
It is easy to write a function for t.test that calculates the effect
size, because all parts of the formula are available from the t.test
result: r = sqrt(t*t / (t*t + df))
However, for Wilcoxon tests, the formula for effect sizes is:
r = Z / sqrt(N)
I wonder how I can calculate the Z-score in R for
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?
2007 Jul 12
1
Subsetting problem
I need to perform the Exact Wilcoxon Mann-Whitney on a subset of my database.
Assuming that IPPO is my data frame and IPPOBIS is the subset my variable still
have 3 different levels and the function wilcox_test (package "coin")
does not accept it.
I do not know how to overcome this problem.
ippo <- c(rep("A",10),rep("B",10),rep("C",10))
ippo2 <-
2003 Feb 15
2
How to code a bootstrap version of the Wilcoxon-Mann-Whitney test (and variants)?
Hello,
can someone please help me with coding a function for a bootstrap WMW test (package boot, R under Windows, version 1.6.2)?
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 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
2009 May 19
1
Wilcoxon nonparametric p-values
When I use wilcox.test, I get vastly different p-values than the problems
from Statistics textbooks.
For example:
The following problem comes from "Applied Statistics and Probability for
Engineers", 2nd Edition, by D. C. Montgomery. Page736, problem 14.7. The
problem is to compare the sample data with a population median of 8.5. The
book answer is p = 0.25, wilcox.test answer is p =