[R] Help with Wilcoxon Test

David Winsemius dwinsemius at comcast.net
Mon Mar 2 18:03:50 CET 2009


What do you get with:

str(SampA)
str(SampV)

The error message suggests you are not giving it numeric vectors.

--  
David Winsemius
On Mar 2, 2009, at 10:59 AM, Amit Patel wrote:

> Hi
> 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
> 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.




More information about the R-help mailing list