Dear Sir/Madam
I have a panel dataset (each company has one or multiple years of data, but there are gaps) and I need to create a flag to identify cases in which there are at least 3 consecutive years of data, without deleting cases where there are not. Can anybody help me? Many thanks!
Kind regards,
João
Related Posts with Help needed: creating flag to Identify at least 3 consecutive years of data (without discarding other cases)
Using substring functions in Stata 16.1Dear Statalist, I have a string variable "comment" stored as "strL" that contains a mix of numbers…
How to re-arrange my data?Dear Statalists, I'd like to rearrange my data in order to analyze it. Part of my dataset is: Co…
Adding fixed effects in esttab using estaddHi all, I've run a few regressions and am trying to add rows indicating the presence of fixed effec…
Why robust command in panel regression?!!Dear I want to know when and why I can use robust command in Stata for panel regression model?! …
How to replace any variable's value if meeting certain conditionDear Stata users, In the following data, I want to replace variables d2a1 d2a2 d2a3 to missing 'cau…
Subscribe to:
Post Comments (Atom)
0 Response to Help needed: creating flag to Identify at least 3 consecutive years of data (without discarding other cases)
Post a Comment