Dear all,
I am actually trying to reshape dates into panel data (I will be more explicite below). I however do not find an efficient way to do it.
I have data at the individual level on unemployment spells, with the following form (06/02/01 means 6th of February 2001)
id Start End
1 06/02/01 06/03/01
2 07/02/01 27/04/10
3 08/07/09 10/07/09
Based on this, my objective would be to create a panel with one different line by individual_month-year unemployed. So for the third individual (id=3), I would have just one line indicating she was unemployed at some point in july 2009. For the first individual (id=1), I would have two lines indicating she was unemployed in February and March of 2001. For individual 2, I would have more lines indicating an unemployment spell from february 2001 to April 2010.
Would you have any efficient way to proceed to such 'reshaping' of the data ?
Many thanks,
Alex.
I am actually trying to reshape dates into panel data (I will be more explicite below). I however do not find an efficient way to do it.
I have data at the individual level on unemployment spells, with the following form (06/02/01 means 6th of February 2001)
id Start End
1 06/02/01 06/03/01
2 07/02/01 27/04/10
3 08/07/09 10/07/09
Based on this, my objective would be to create a panel with one different line by individual_month-year unemployed. So for the third individual (id=3), I would have just one line indicating she was unemployed at some point in july 2009. For the first individual (id=1), I would have two lines indicating she was unemployed in February and March of 2001. For individual 2, I would have more lines indicating an unemployment spell from february 2001 to April 2010.
Would you have any efficient way to proceed to such 'reshaping' of the data ?
Many thanks,
Alex.
Comment