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 :)
Estimating Productivity adnI am trying to find impact of (Dividends) on (Firm Sales) controlling for the firm characteristics i…
Creating a new variable by Household IDI have a dataset where everybody has household ID and each respondent has a given economic status: "…
Adjusting survival Kaplan CurveCheers, Here is sample code. Code: webuse cancer,clear set obs 48 generate weight = runiform() s…
Clean syntax in STATAhi, please help me! I found command that is not recognized in STATA14 but is used in Chaney2012 pape…
Estimating Productivity from Cobb Douglas and Variables Significance changeI am trying to find impact of (Dividends) on (Firm Sales) controlling for the firm characteristics i…
Subscribe to:
Post Comments (Atom)
0 Response to Data perperation (Event data analysis) - please help :)
Post a Comment