I have one simple question. At the moment, I am dealing with the data which is relatively cross-sectional. Please check the data as shown below:
Director Name | Company ID | Director_StartYear | Director_EndYear |
John | 7 | 01/07/1996 | 01/07/2002 |
Mary | 3 | 01/07/1999 | 01/07/2003 |
Ideally, I would like to reshape it to the data format (to panel data) as:
Director | Company ID | Director_Year |
John | 7 | 1996 |
John | 7 | 1997 |
John | 7 | 1998 |
John | 7 | 1999 |
John | 7 | 2000 |
John | 7 | 2001 |
John | 7 | 2002 |
Mary | 3 | 1999 |
Mary | 3 | 2000 |
Mary | 3 | 2001 |
Mary | 3 | 2002 |
Mary | 3 | 2003 |
Many thanks.
Best wishes,
Cong
0 Response to Data format reshape
Post a Comment