There are user-written -egen- functions for row medians,
but these are not appropriate for panel data. Kevin
Crow has written a -egen- function for moving medians,
but on the whole I guess that the tool closest to
your needs is -mvsumm- from SSC, whose first author
is Kit Baum.
All this can be found out by using -findit- with
key words.
[email protected]
> I need to calculate the moving median from the previous 12 months for
> each country in a panel. Does anyone have any suggestions for an
> elegant way to do that. Is there a Stata 7 command which would let
> me calculate the median across several variables (i.e median(v1 v2
> v3) would be the row median of the values for v1 v2 and v3 in a given
> row)?
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/