Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: egen to calculate industry medians with own frim excluded


From   "Erasmo Giambona" <[email protected]>
To   statalist <[email protected]>
Subject   st: egen to calculate industry medians with own frim excluded
Date   Wed, 19 Dec 2007 12:42:50 +0100

Dear Statalisters,

I am using the following code to get the median of my ffo variable
within a certain industry/year for a sample of firms:

egen ffo=median(med_ffoq ), by(industry year).

However, I need to exclude the own firm before calculating the
industry median for ffo. Does anyone has any suggestions on how I
could do this with egen or any other command?

Any help would be appreciated.
Regards,
Erasmo
*
*   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/



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