Statalist


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

st: RE: RE: AW: R: difference between two medians


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: AW: R: difference between two medians
Date   Wed, 25 Nov 2009 12:40:40 -0000

I imagine there is a connection here to Martin's earlier post. 

Given 

regress <response> <indicator> 

you can recover the means for indicator == 0 and indicator == 1. That's
part of the magic of least squares. 

But it's not necessarily true that given 

qreg <response> <indicator> 

you can recover the equivalent medians. Working with a norm based on
absolute differences doesn't have that side effect in general. 

Nick 
[email protected] 

Newson, Roger B

The median difference is not the same thing as a difference between
medians. This distinction causes a lot of culture shock to people who
are accustomed to working with means and their differences. 


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