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

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

From   "Nick Cox" <>
To   <>
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. 


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. 


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:

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