Hello 😊
I have the following variables over 3 waves:
Mergeid, retired(dummy: 1=retired 0=employed) and wave.
I want to say: drop the observation when a person comes out of retirement and become an employee.
I tried the following code, but failed.
by numid: drop if (((wave==1) & (retired==1)) & ((wave==2) & (retired==1)) & ((wave==3) & (retired==0)))
Can someone help me please? 😊
Related Posts with Drop Observations trough Waves
DRAMATIC CHANGES IN HAZARD RATIO and MORTALITY RATIOHi Everyone, Below is an example of data from the survival analysis. The total duration of follow…
Restricting the survival analysis to first five years since diagnosisHi Everyone, Below is an example of data from the survival analysis. The total duration of follow…
Industry/Year Fixed Effects (Panel Data)Hi, Let me first say that I'm Stata-beginner and would appreciate your help. I have read many threa…
Panel data, time series: creating variable after specific entryHi all, I'm trying to create variable that is equal to the date at which the first plane is produce…
Joint Standard Errors of RegressionHello everyone, I am trying to model the line of the intersect between the equation Y = a + b1.X1 + …
Subscribe to:
Post Comments (Atom)
0 Response to Drop Observations trough Waves
Post a Comment