Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: difference between two medians


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: difference between two medians
Date   Wed, 25 Nov 2009 10:04:48 +0000 (GMT)

--- On Wed, 25/11/09, CarlosAlencar wrote:
> how coould i compare two medians? what  command should
> i use?

Sounds like -qreg-. In the example below the median price
of domestic cars is  4816 and the price of foreign cars is
983 dollars higher, and this difference is significant.

*----- begin example -----
sysuse auto, clear
qreg price foreign
*------ end example -------
( For more on how to use examples I sent to statalist see:
 http://www.maartenbuis.nl/stata/exampleFAQ.html )

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------




      

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index