Yuriy,
You can check Nick Cox's and Chris Baum's -mvsumm- command. The 50th
percentile option gives you the moving median you want. Just type -help
mvsumm- or -findit mvsumm- to get to the link to install it.
Best,
Adrian
> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: Monday, May 03, 2004 3:03 PM
> To: [email protected]
> Subject: st: Moving Medians
>
>
> 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)?
>
> Thanks
> Yuriy
>
>
>
> *
> * 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/
>
*
* 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/