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/