Statalist


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

AW: st: difference between two medians


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   AW: st: difference between two medians
Date   Wed, 25 Nov 2009 11:19:09 +0100

<> 

" In the example below the median price of domestic cars is  4816"



-tabstat- yields a different result for the median price of domestic cars, though...


*************

sysuse auto, clear

qreg price foreign

//-tabstat- yields different result
tabstat price, stat(median)  /* 
*/ by(foreign) nototal /* 
*/ columns(variables)

*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Maarten buis
Gesendet: Mittwoch, 25. November 2009 11:05
An: [email protected]
Betreff: Re: st: difference between two medians

--- 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/


*
*   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