mwTest2samp {staRank} | R Documentation |
Modified version of wilcox.test (taken from src/library/stats/R/wilcox.test.R) which performes a two-sample Mann-Withney test only and therefore is faster than the original version.
mwTest2samp(x, y, alternative = c("two.sided", "less", "greater"), correct = TRUE)
x |
a numeric vector. |
y |
a numeric vector. |
alternative |
one of c("two.sided", "less", "greater"). |
correct |
boolean. |
the test statistic and the p-value of the test.
x<-rnorm(100) y<-rnorm(100,mean=1) mwTest2samp(x,y,alternative='two.sided')