Re: [R] How to apply the Wilcoxon test to a hole table at once?

2009-10-24 Thread Uwe Ligges
Iurie Malai wrote: Hi, I have a data set: Dataset X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17 1 user1 m 22 19 28 24 12 18 9 7 4 5 4 7 5 7 9 2 user2 f 25 19 23 18 18 15 6 8 6 6 7 10 7 7 7 3 user3 f 28 21 24 18 15 12 10 6 7 9

Re: [R] How to apply the Wilcoxon test to a hole table at once?

2009-10-24 Thread Iurie Malai
Uwe Ligges-3 wrote: Whole table? Each variable against every other variable? Or something else? Do you think that makes sense? Anyway, you can calculate all combinations of 2 unique columns and iterate over them. Uwe Ligges In the variable X2 I have encoded men and women, so I

[R] How to apply the Wilcoxon test to a hole table at once?

2009-10-23 Thread Iurie Malai
Hi, I have a data set: Dataset X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17 1 user1 m 22 19 28 24 12 18 9 7 4 5 4 7 5 7 9 2 user2 f 25 19 23 18 18 15 6 8 6 6 7 10 7 7 7 3 user3 f 28 21 24 18 15 12 10 6 7 9 5 10 5 9 5 4

Re: [R] How to apply the Wilcoxon test to a hole table at once?

2009-10-23 Thread Steven McKinney
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Iurie Malai Sent: Friday, October 23, 2009 10:46 AM To: r-help@r-project.org Subject: [R] How to apply the Wilcoxon test to a hole table at once? Hi, I have a data set:

Re: [R] How to apply the Wilcoxon test to a hole table at once?

2009-10-23 Thread Iurie Malai
Thank you! Here is my adapted script: lapply(Dataset[3:17], function(x) wilcox.test(x ~ X2, alternative=two.sided, data=Dataset, subset = X2 = 2)) but in R I have nothing, and in R Commander I have this error message: ERROR: grouping factor must have exactly 2 levels My grouping factor is in

Re: [R] How to apply the Wilcoxon test to a hole table at once?

2009-10-23 Thread Iurie Malai
Thank you very much! This is my adapted script and now it is OK: lapply(Dataset[3:17], function(x) wilcox.test(x ~ X2, alternative=two.sided, data=Dataset)) But it is possible to get results more compact, similar to a table? Iurie Malai Moldova Pedagogical State University Steven McKinney