[R] Help with Wilcoxon Test

Daniel Malter daniel at umd.edu
Mon Mar 2 19:25:26 CET 2009





in the R-prompt. It will show you that at least one of the vectors is not a
vector of numerical values in R's sense. Then you have to convert using the
as.numeric() function, but you will have to make sure that this really gives
you the original vectors. Since your vectors are only 1x10, it's probably
easier to type them in anew.


cuncta stricte discussurus

-----Ursprüngliche Nachricht-----
Von: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] Im
Auftrag von Amit Patel
Gesendet: Monday, March 02, 2009 11:00 AM
An: r-help at r-project.org
Betreff: [R] Help with Wilcoxon Test

I have 2 sets of data that I want to do a Wilcoxon test on. They are of the
same dimension. One has 4 zero values and the other has 5.
> dim(SampA)
[1]  1 10
> dim(SampV)
[1]  1 10
I get the folowing error 

Error in wilcox.test.default(SampA, SampV, na.rm = TRUE, paired = FALSE,  : 
  'x' must be numeric

I am using the function
wilcox.test(SampA, SampV, na.rm=TRUE, paired=FALSE, conf.level=0.95)

R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list