Laurent Gautier
2001-Apr-06 13:35 UTC
[R] wilcoxon test: error not enough (finite) observations
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] > aV2 V3 V4 V5 1 458.2 200.5 232 205> bV6 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Laurent Gautier
2001-Apr-06 14:44 UTC
[R] wilcoxon test: error not enough (finite) observations
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] > aV2 V3 V4 V5 1 458.2 200.5 232 205> bV6 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hello, Is it reasonable to run a test of significance regarding a proportion in a group versus that in the whole population? What kind of problems can one face in analysis? Thanks. syed -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._