Dear Statalists,
I have a panel dataset with a time range (T) from -2 to 4. I would like to keep only those individuals who have at least one observation in both T=-1 and T=0. How can I do this?
I read the following question: https://www.statalist.org/forums/for...l-observations
However in that specific case, the user didn't need to check if the consecutive years started from a specific year!
Thanks
Related Posts with Panel Data: How can I keep individuals with observations in specific consecutive years?
interaction effects LPM vs logisticHi! I am trying to understand why my interaction effects get different signs when using an logistic…
graph add vertical line using value in macro variableI am using Stata 13 I want to develop code to add a single vertical line on a graph using a value ob…
Observations in new variable that shouldn't be includedHello, I am trying to make a new variable with the following command Code: gen gift_group_test = …
graph add vertical line using value in macro variableI am using Stata 13 I want to develop code to add a single vertical line on a graph using a value ob…
Multilevel/Hierarchical models and clustered-robust standard errorsMultilevel/hierarchical model with clustered-robust standard errors. I have reviewed various posts o…
Subscribe to:
Post Comments (Atom)
0 Response to Panel Data: How can I keep individuals with observations in specific consecutive years?
Post a Comment