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:
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
# 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
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
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
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,
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 -
7 matches
Mail list logo