[R] wilcoxon test: error not enough (finite) observations
Laurent Gautier
laurent at cbs.dtu.dk
Fri Apr 6 16:44:51 CEST 2001
Dear R users,
Sorry for the invonvenience. The problem turned out to be that the given
parameters where not exactly what the functions was waiting for x and y.
Wrapping as.numeric() around the given arguments solved it.
I however suggest a test could be added early in this function so a more
explicit error message could be shown to the user.
Cheers,
Laurent
-------------------------------------------------------------------------
Dear R users,
Using the wilcoxon test in the library ctest, I have the following error
message.
---------------
> a <- dataf[1, indexControls]
> b <- dataf[1, indexTreated]
> a
V2 V3 V4 V5
1 458.2 200.5 232 205
> b
V6 V7 V8
1 308.2 537 971.9
> wilcox.test(a,b)
Error in wilcox.test(a, b) : not enough (finite) x observations
This puzzles me since the following works....
------------------
> wilcox.test(c(1,2,3,4),c(2.3,3.4,4.5))
Wilcoxon rank sum test
data: c(1, 2, 3, 4) and c(2.3, 3.4, 4.5)
W = 3, p-value = 0.4
alternative hypothesis: true mu is not equal to 0
I must be wrong somewhere, but I just can find where !
Thanks any kind of hint/help.
Laurent
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list