Hello, I have a variable year containing years 1996-2014 and a variable firm_size which can take values "Small", "Medium", "large". When I generated the average of another numerical variable markup i used this code: egen average_markup_clean = mean(markup_clean), by(year). But I know want to do this per year based on the firm_size, however by() can only contain one argument. How should I encounter this problem? Thank You in advance!
-
Login or Register
- Log in with
Comment