Hey all,
I am conducting a panel study for my master's thesis. I have two adjustments I want to make to my dataset, what is the best way to let stata do this?
Firstly, I want to exclude firm observations with no data of 2 consecutive years: So in this case the observations of 2010 and 2012 should be dropped.
Secondly, I want to exclude firm observations in their first year of going public. So in this case the observation for firm 2 in 2010 should be dropped for it goes public in 2010 (IPO date variable).
Thank you.
I am conducting a panel study for my master's thesis. I have two adjustments I want to make to my dataset, what is the best way to let stata do this?
Firstly, I want to exclude firm observations with no data of 2 consecutive years: So in this case the observations of 2010 and 2012 should be dropped.
Firm | Year |
1 | 2010 |
1 | 2012 |
1 | 2014 |
1 | 2015 |
1 | 2016 |
Secondly, I want to exclude firm observations in their first year of going public. So in this case the observation for firm 2 in 2010 should be dropped for it goes public in 2010 (IPO date variable).
Firm | Year | X | IPO date |
1 | 2011 | . | 1-1-1988 |
1 | 2012 | . | 1-1-1988 |
2 | 2010 | . | 5-6-2010 |
2 | 2011 | . | 5-6-2010 |
2 | 2012 | . | 5-6-2010 |
Comment