Hello everyone,
I hope this is the right place for this questions. If not please tell me where the right place is, it is my first posting after all.
So, I want to drop several oberservations from my dataset. Everyone in the set has an unique ID (panel variable) and the time variable is the year variable (1984 - 2016).
I want to drop everyone who hasn't the value "retired" in a variable called "labor force status" at any time. But I want to keep every observation from every year for the persons which do have the value "retired" at any time.
Basically I want to keep all the information for pensioners, and all the information for people still working should be dropped.
It would be really helpful if somebody could help me with it, because I rarely worked with panel data before.
Greetings
Florian
I hope this is the right place for this questions. If not please tell me where the right place is, it is my first posting after all.
So, I want to drop several oberservations from my dataset. Everyone in the set has an unique ID (panel variable) and the time variable is the year variable (1984 - 2016).
I want to drop everyone who hasn't the value "retired" in a variable called "labor force status" at any time. But I want to keep every observation from every year for the persons which do have the value "retired" at any time.
Basically I want to keep all the information for pensioners, and all the information for people still working should be dropped.
It would be really helpful if somebody could help me with it, because I rarely worked with panel data before.
Greetings
Florian
Comment