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
Advice for FE or FD model for panel dataHello, I am looking for advice on the correct form of my model. I am planning to run a regression to…
FMM with GLM yields strange results on simulated dataHello Statalist Community, I am trying to test the capabilities of STATA 15's FMM procedure to esti…
Loop to avoid using more variables than Stata allowsHi everyone, I am working with a lot of data and could really use your help. I am trying to create …
Simultaneous equationsHello, I am doing accounting research. Recently I read a research paper using the generalized metho…
FMMwith GLM yields strange results on simulated dataHello Statalist Community, I am trying to test the capabilities of STATA 15's FMM procedure to esti…
Subscribe to:
Post Comments (Atom)
0 Response to Drop Observations trough Waves
Post a Comment