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 :)
Identification tests under ivreg2Dear Statalisters, I am running an ivreg2 estimation. I am not too sure on how to interpret these r…
Marginsplot with countriesHello all, This is just an example: I do a logit-comman like for instance "logit salary gender" whe…
Graphing multiple variables in a single map using SPMAPDeal all, I am using Stata 15. I have a cross section data-set for year 2015 with crop yields for fo…
Functional data analysis for analysis of continuous glucose data (i.e. over days) in StataHello Stata colleagues, I have some continuous glucose data in participants who completed cross-ove…
Assigning random number from list to regression stored nameHello, I want to run several regressions and store them. The name should contain a number randomly …
Subscribe to:
Post Comments (Atom)
0 Response to Data perperation (Event data analysis) - please help :)
Post a Comment