Hi all,
I'm trying to calculate the mean of subgroups that additionally fulfill a certain condition: Specifically, I'd like to calculate the mean market cap by month of all firms that are IPO firms (i.e. IPO dummy ==1). What I tried is this:
This somehow changes my values I have stored in IPOdummy1Y. Can someone kindly explain why this happens and how I could avoid this?
Many thanks for your help.
Best,
Peter
I'm trying to calculate the mean of subgroups that additionally fulfill a certain condition: Specifically, I'd like to calculate the mean market cap by month of all firms that are IPO firms (i.e. IPO dummy ==1). What I tried is this:
Code:
bysort Month IPOdummy1Y: egen MeanMC1Y = mean(realmarketcap)
Many thanks for your help.
Best,
Peter
Comment