.-
help for ^median^                                      
.-

Median test
-----------

^median^ varname [weight] [^if^ exp] [^in^ range] ^, by(^groupvar^)^ [^e^xact]

^fweight^s are allowed; see help @weights@.


Description
-----------

^median^ performs a non-parametric K-sample test on the equality of medians.
It tests the null hypothesis that the medians of the K independent samples are
equal.  In the case of two samples, the test chi-squared statistic is
calculated with, and without a continuity correction.


Options
-------

^by(^groupvar^)^ is not optional. It specifies the variable identifying the
groups to be compared.

^exact^ displays the significance calculated by Fisher's exact test.  In the
case of two samples, both one- and two-sided probabilities are displayed.


Example
-------

 . ^median score, by(drug)^
 . ^median score, by(drug) exact^

 
Also see
--------

 Manual:  [R] signrank
On-line:  help for @signrank@

