Re: [R] Wilcoxon test output as a table

2013-12-12 Thread dc347
Hello there Was looking up a similar problem yesterday and came across the gMWT package (Generalized Mann-Whitney Type Tests). It addresses your problem, although I am still trying to figure out how it works. Kind regards, David -- View this message in context:

[R] Wilcoxon test output as a table

2010-06-05 Thread Iurie Malai
Hi! I searched some time ago a way to get the Wilcoxon test results as a table more or less formatted. Nobody told me any solution and I found nothing on the Internet. Recently I came across this link ( http://myowelt.blogspot.com/2008/04/beautiful-correlation-tables-in-r.html), which helped me

Re: [R] Wilcoxon test output as a table

2010-06-05 Thread Joris Meys
# not tested out - rbind(as.numeric(Wnew),as.numeric(P)) rownames(out) - c(Wnew,P) Cheers On Sat, Jun 5, 2010 at 11:18 PM, Iurie Malai iurie.ma...@gmail.com wrote: Hi! I searched some time ago a way to get the Wilcoxon test results as a table more or less formatted. Nobody told me any

Re: [R] Wilcoxon test output as a table

2010-06-05 Thread Iurie Malai
Thank you, Joris! I received two identical warnings: [14] WARNING: Warning in if (nchar(cmd) = width) return(cmd) : the condition has length 1 and only the first element will be used [15] WARNING: Warning in if (nchar(cmd) = width) return(cmd) : the condition has length 1 and only the

Re: [R] Wilcoxon test output as a table

2010-06-05 Thread Joris Meys
Can't reproduce those with your code and your dataset. I also noticed some other unwanted behaviour by using as.numeric : it changes the formatting again. You won't get rid of the as that indicates it's a character, and you won't be able to format the numbers as the columns in a dataframe or in a

Re: [R] Wilcoxon test output as a table

2010-06-05 Thread Iurie Malai
Sorry, Joris, now is wonderful! Thank you! Now, this is the code: W - as.matrix(lapply(Dataset[2:11], function(x) wilcox.test(x ~ GrFac, alternative=two.sided, data=Dataset)$statistic)) P - as.matrix(lapply(Dataset[2:11], function(x) wilcox.test(x ~ GrFac, alternative=two.sided,

Re: [R] Wilcoxon test output as a table

2010-06-05 Thread Iurie Malai
Maybe, this will be better: W - as.matrix(lapply(Dataset[2:11], function(x) wilcox.test(x ~ GrFac, alternative=two.sided, data=Dataset)$statistic)) P - as.matrix(lapply(Dataset[2:11], function(x) wilcox.test(x ~ GrFac, alternative=two.sided, data=Dataset)$p.value)) out -