Hi everybody,
I got quite a large dataset (700K observations and around 20 variables), but I'm only interested in a small part of this. I combined firm financial specifics (compustat) and director specifics (ISS) and I'm trying to select only firms that appointed directors in two or more different years.
I'm a complete beginner with STATA, but I tried identifying firms by CUSIP code and director appointments by the year a director started (directorsince). However, I can't figure out the commands for selecting only this subset of my database. I could be totally wrong, but I think I need a command that does something similar as:
only keep observations if directorsince is for at least two different years and the same CUSIP code (firm)
Hopefully I described my problem clear enough for someone to be able to help me!
I got quite a large dataset (700K observations and around 20 variables), but I'm only interested in a small part of this. I combined firm financial specifics (compustat) and director specifics (ISS) and I'm trying to select only firms that appointed directors in two or more different years.
I'm a complete beginner with STATA, but I tried identifying firms by CUSIP code and director appointments by the year a director started (directorsince). However, I can't figure out the commands for selecting only this subset of my database. I could be totally wrong, but I think I need a command that does something similar as:
only keep observations if directorsince is for at least two different years and the same CUSIP code (firm)
Hopefully I described my problem clear enough for someone to be able to help me!
Comment