mood.median.test {MultNonParam} | R Documentation |
Mood's Median test, extended to odd sample sizes.
Description
Test whether two samples come from the same distribution. This version of Mood's median test is presented for pedagogical purposes only. Many authors successfully argue that it is not very powerful. The name "median test" is a misnomer, in that the null hypothesis is equality of distributions, and not just equality of median. Exact calculations are not optimal for the odd sample size case.
Usage
mood.median.test(x, y, exact = FALSE)
Arguments
x |
First data set. |
y |
Second data set. |
exact |
Indicator for whether the test should be done exactly or approximately. |
Details
The exact case reduces to Fisher's exact test.
Value
The two-sided p-value.
[Package MultNonParam version 1.3.9 Index]