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