hello, I need some help here:
basically what i have now is 70,000 observations of assets of companies in different years in diff industry (industry is represented by 4-digits sic code), what i want is a formula that could give me a mean of the assets in each year in each industry. But what makes it more complicated is that the criteria I use for SIC is only the first two digits
for example:
company fyear assets SIC
A 2000 10 1222
B 2001 20 1234
D 2000 30 1233
C 2000 40 1345
E 2001 50 1234
F 2000 60 1356
I need the result to be
fyear first 2 digits SIC average of assets
2000 12 20
2001 12 35
2000 13 50
ideas ?? thank you !!
Bookmarks