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?
Beginer LPM annalysis Help! (What tests to run on a LPM)Hello STATA Enthusiasts, I am working on a project for university statistics class and have been bu…
What is the interaction term in firm's industry case?In Dasgupta, 2019, p.2012, 2013, they want to examine the impact of staggered leniency laws on firms…
Missing values in Panel DataHello everyone, I am working with panel data describing company code as id variable and financial y…
Skipping and Restarting A LoopHi, I have the following data. I am trying to compute the mean for each occupation category in the …
How to get the first 3 digit of a variable ?I have a variable receiving 3 types of results: 4-digit number, 3-digit number, and NA For example …
Subscribe to:
Post Comments (Atom)
0 Response to Panel Data: How can I keep individuals with observations in specific consecutive years?
Post a Comment