mwTest2samp: mwTest2samp

Description Usage Arguments Value Examples

View source: R/mwTest2samp.R

Description

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.

Usage

1
2
3
  mwTest2samp(x, y,
    alternative = c("two.sided", "less", "greater"),
    correct = TRUE)

Arguments

x

a numeric vector.

y

a numeric vector.

alternative

one of c("two.sided", "less", "greater").

correct

boolean.

Value

the test statistic and the p-value of the test.

Examples

1
2
3
x<-rnorm(100)
y<-rnorm(100,mean=1)
mwTest2samp(x,y,alternative='two.sided')

staRank documentation built on Nov. 8, 2020, 7:51 p.m.