Export results of the median command
median
performs a nonparametric K-sample test on the equality of medians. It tests the null hypothesis that the K samples were drawn from populations with the same median. For two samples, the chi-squared test statistic is computed both with and without a continuity correction. To export the output of median
command, we need to add asdocx to the beginning of the Stata command. See the following example.
* Load some example data sysuse nlsw88 asdocx median wage , by(race )
Median test
Greater than the median | race | |||
---|---|---|---|---|
white | black | other | Total | |
no | 772 | 341 | 10 | 1123 |
yes | 865 | 242 | 16 | 1123 |
Total | 1637 | 583 | 26 | 2246 |
Pearson Chi2 | 23.48 | |||
Prob. | 0.0000 | |||
Notes: |
Order asdocx
Yearly license of asdocx is available at $9.99. Its life-time license is available at $49.99. With the asdocx membership, you get :
- Life-time license to use
- All future updates
- All premium templates / plugins.