I am new of longitudinal analysis and I am running into a problem that may be easy for you:
I need to create one variable which assume values = 1 if the case has passed from the condition of being employed(t-1) to the unemployment(t). All the other transitions have to be coded with 0.
Here an example of my data:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long(pidp apidp) int panel_id byte(wave status) 68028575 68028567 214 1 1 68028575 68028567 214 2 0 68028575 68028571 215 1 1 68028575 68028571 215 2 0 68049655 68049651 317 1 2 68049655 68049651 317 2 0 end
1 = employed
2 = student
I am working with dyads, so each couple parent-son\daughter is identified by a unique id (panel_id)
Do you have any clue about that?
thanks a lot, G
0 Response to Lagged variables: transition from one condition to another
Post a Comment