Hi everyone,
I am currently using Stata to process Compustat ExecuComp data to work on my thesis. I have encounter a problem with number of observations (number of CEO-year) and number of firms. After processing, I have found about 28,138 observations but I would like to know how many firms are there is the 28,138 observations since there might be one CEO for a firm for different years. How should I actually code to know how many firms are there?
The data downloaded from WRDS had different ID number for each executive/company combination, but how do I code to categorise them to number of firms?
Thanks a lot.

I am currently using Stata to process Compustat ExecuComp data to work on my thesis. I have encounter a problem with number of observations (number of CEO-year) and number of firms. After processing, I have found about 28,138 observations but I would like to know how many firms are there is the 28,138 observations since there might be one CEO for a firm for different years. How should I actually code to know how many firms are there?
The data downloaded from WRDS had different ID number for each executive/company combination, but how do I code to categorise them to number of firms?
Thanks a lot.
Comment