View source: R/mood.median.test.R
mood.median.test | R Documentation |
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.
mood.median.test(x, y, exact = FALSE)
x |
First data set. |
y |
Second data set. |
exact |
Indicator for whether the test should be done exactly or approximately. |
The exact case reduces to Fisher's exact test.
The two-sided p-value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.