Hi all,
I am so stuck with my data preperation before even beginning with the actual analysis and really hope someone can help me.
I have a very large panel data set (already with some event data variables included) about people labour status and would like to drop some ID´s which are not relevant for my analysis.
I am only interested in women (it was easy to drop all men) which had at least one period of maternity leave (ArbeitKinder=Kinder) and at least one period of full- or part-time work (already created the "work-variable"-> ArbeitKinder=Arbeit).
The data looks somewhat like this:
Array
In this little example of my data basis I am only interested to keep the ID "2674000", because it is the only woman with maternity leave and work periods (duration and activity beginning and end are in the example included).
I have two questions:
1) How can I drop all ID´s which are not interesting to me and keep ALL periods of the interesting ID´s?
2) In a second step (after droping the ID´s) I want to only keep those women who worked AFTER the maternity leave (and I want to treat it as "not working again" after 36 months?)
I am so greatful in advance for your help!
Best regards,
Susa
Related Posts with Data perperation (Event data analysis) - please help :)
State by Year Fixed Effects and Annual State ControlsIn my econometric model the identifying variation is at the state, year, and factory level. When I i…
Calculate the mean of simulations by groups with panel dataHello everyone, My dataset contains: - mcruns (50 Monte Carlo simulations) - lgacode (50001 to 501…
search if a value is present in tableHello all, How can I search if a particular value is present in a table. if the value is present in…
Create binary variable if string contains any of the followingHi, I have a variable "CaseDescription1". It's a string variable, with very long text description o…
Did I set up my panel data (with restrictions) correctly?Hi all, I would like to seek your advice regarding my analysis sample. Specifically, I have a three…
Subscribe to:
Post Comments (Atom)
0 Response to Data perperation (Event data analysis) - please help :)
Post a Comment