mwTest2samp {staRank} | R Documentation

## mwTest2samp

### 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

      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

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

[Package staRank version 1.34.0 Index]