search for: grfac

Displaying 1 result from an estimated 1 matches for "grfac".

2010 Jun 05
3
Wilcoxon test output as a table
...und 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 to find a solution. Here's the solution (I'm using R Commander): 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)) W <- format(W, digits = 5, nsmall = 2) P <- format(P, digits = 1, nsmall = 3) Wnew <- matrix(p...