Hi,
Hope you are doing great. I am working with panel data, I have several periods where the people I follow change. The only condition is that I follow each individual for 5 consecutive periods. I want to create a sub-panel where I keep all the observations of individuals that appear in my data for a particular period, year 2015. ID is the variable I use to uniquely identify each individual.
Any ideas on how can I do that?
Thanks,
Tessa
Hope you are doing great. I am working with panel data, I have several periods where the people I follow change. The only condition is that I follow each individual for 5 consecutive periods. I want to create a sub-panel where I keep all the observations of individuals that appear in my data for a particular period, year 2015. ID is the variable I use to uniquely identify each individual.
ID | Year |
1 | 2001 |
1 | 2002 |
1 | 2003 |
1 | 2004 |
1 | 2005 |
2 | 2002 |
2 | 2003 |
2 | 2004 |
2 | 2005 |
2 | 2006 |
. | . |
. | . |
. | . |
10 | 2012 |
10 | 2013 |
10 | 2014 |
10 | 2015 |
10 | 2016 |
Thanks,
Tessa
Comment