Dear All, I have the following on two variables
I think I can use
to test whether the means of odiff and odiff1 are equal. However, Is there a way to test whether their medians are equal or not? Thanks.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(id odiff odiff1) 1 0 0 2 0 0 3 0 0 4 0 0 5 1 0 6 0 0 7 0 0 8 0 0 9 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 2 1 15 2 3 16 0 0 17 0 0 18 0 -1 19 0 -1 20 0 0 21 0 0 22 1 -1 23 0 0 24 1 2 25 1 0 26 3 2 27 0 0 28 2 2 29 2 1 30 1 0 end
Code:
ttest odiff = odiff1
Comment