Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: median without current observation


From   Andres Silva <asilvam@uc.cl>
To   statalist@hsphsun2.harvard.edu
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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index