Hi,

I have panel data with several stocks and dates. I have variable X which is defined for each date and stock.

I wanted to find the mean and the median of variable X for an "average day" and for an "average stock" in my sample. Using the bysort : egen command yields the same results for both, so I do not know what I am doing wrong. Other posts on this issue did not solve my problem...

Do you have an idea? Thank you very much!

Best regards,
Eva