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?
Average Treatment on the Treated (ATT) using psmatch2 and teffects psmatchHi all. I have a question regarding the coefficient for the Average Treatment Effect on the Treated …
Running Ordinal Logistic Regression and testing for gender differencesHi I am looking for some guidance in my project. My DV is categorical (low, medium, and high stress)…
Counts of An IdentifierHi, I have a dataset that has 3 variables: 1) mrn :unique identifier 2) test_results: Results for a …
Customizing a Diff-in-Diff table using Collect: A question about tagging confidence intervalsI have created a custom table to report multiple models I am estimating using Juan VIlla's excellent…
failure to get F test when running xtreg with clustering on a group (more predictors than groups)My question concerns what to do when you have too few degrees of freedom due to clustering data in -…
Subscribe to:
Post Comments (Atom)
0 Response to Panel Data: How can I keep individuals with observations in specific consecutive years?
Post a Comment