I am trying to calculate the average ESG score for a specific industry for a given year using Stata. However, I am struggling to find the correct command.
By using:
Code:
bysort Year: egen MeanIndustryEsg = mean(ESG_score)
Any help is appreciated!
Thanks a lot!
0 Response to Command for calculating mean incorporating three variables (ESG, year, industry)
Post a Comment