Hello
I am using the British Household Survey and have restricted my sample to mothers and have created an indicator variable showing when these mothers switched from employment to maternity leave. I am only interested in studying these mothers across waves.
I have tried to only keep those who have experienced this switch but it deletes all of the other wave history of the same mothers apart from the wave at which the switch took place.
I basically want to keep the identification number of these mothers but also of the waves each of this id has responded to.
There are 700+ of these women so telling stata to keep only these identification numbers would take a lot of time.
Also bare in mind that there is no set number of waves that all of the mothers in my list have responded to so I can't just use a certain _N= command given that I don't have such consistency.
Below is a table of what my data looks like.
Thanks in advance
I am using the British Household Survey and have restricted my sample to mothers and have created an indicator variable showing when these mothers switched from employment to maternity leave. I am only interested in studying these mothers across waves.
I have tried to only keep those who have experienced this switch but it deletes all of the other wave history of the same mothers apart from the wave at which the switch took place.
I basically want to keep the identification number of these mothers but also of the waves each of this id has responded to.
There are 700+ of these women so telling stata to keep only these identification numbers would take a lot of time.
Also bare in mind that there is no set number of waves that all of the mothers in my list have responded to so I can't just use a certain _N= command given that I don't have such consistency.
Below is a table of what my data looks like.
id | wave | employment status | |
1 | 1 | unemployment-->employment | |
1 | 2 | employment--> maternity leave | |
2 | 6 | employment -->employment | |
2 | 7 |
|
|
2 | 8 |
|
|
3 | 1 | employment-->maternity leave | |
3 | 2 | maternity leave-->employment | |
3 | 4 | employment-->employment |
Comment