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
Update to -dstat-: various additional statistics supportedThanks to Kit Baum, an update to dstat is available from SSC. To obtain the update, type Code: . ss…
Risk models and asdocHi all, does anyone know if asdoc is setup to use with any relative risk models? In particular, I am…
Loading in blocks of dataHello I have the following data. It is a .txt file with 7 variables listed vertically with a line s…
bidirectional bar chart with different measurement unitsHi Statalist, I want to draw a graph similar to the following plot. I would appreciate any insights.…
Time dummies in XTABOND2Hello, I am running a one step difference GMM dynamic panel model on stata using xtabond2. I am tr…
Subscribe to:
Post Comments (Atom)
0 Response to Drop Observations trough Waves
Post a Comment