mood.test: A Function to Perform Mood's Median Test
Description
mood.test performs Mood's median test.
Usage
mood.test(y, group)
Arguments
y
a numeric vector of data values.
group
a vector or factor object giving the group for the corresponding elements of y.
Value
Returns a list containing following elements:
statisticthe Mood's Median test statistic.
dfthe degrees of freedom of the approximate chi-squared distribution of the test statistic.
p.valuethe p-value of the test.
References
Brown, G. W., Mood, A. M. (1951). On Median Tests for Linear Hypotheses. Proceedings of the Second Berkeley Symposium on Mathematical Statististics and Probility, University of California Press, 159-166.