Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: median without current observation
From
Andres Silva <[email protected]>
To
[email protected]
Subject
st: median without current observation
Date
Mon, 15 Apr 2013 09:29:16 +0200
Dear statausers,
I want to create a variable "mediany", which needs to be regional
median (without considering the current value of "y"). I mean I need
to calculate the median with the remaining values of "y" in each
specific region.
by region: egen mediany=median(y)
How can I tell stata not use the current "y" value?
I appreciate any advice, thanks, Andres
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/