Hello everyone, this is my first post here and I'm relatively new to Stata so I was hoping to get some help on an issue I am stuck with.
I have a large dataset (panel data) of different corporations and I want to code it so as to verify a condition: ratio3==1 for three consecutive years as those are the companies I am interested in. I would then drop all the others for which the condition doesn't hold for three years in a row.
Could you please help? Any insight would be greatly appreciated!
Thanks!
Related Posts with verifying a condition for three consecutive years in panel data
Year Fixed effect xtlogitDear All Please, I have seen some posts related to many fixed effect, but I don’t find my case solut…
Count Number of Each Age Observation Across Years and Not Include Certain Data ObservationsDear all, I am using Stata 16, on mac. I have taken a snapshot of dataset I am working with. Array …
Flagging just one corresponding positive value for every negative valueHi. My dataset has an id variable, a total amount variable and the corresponding date variable. Ther…
Saving tabulated dummy variable scalars (i.variable)Hello, I'm trying to run an estimation for my honours thesis detailed in this paper (open-source ve…
Mixed-Effects Linear Model Set-upHi, I would like to run a mixed-effects linear regression model with cesd as my outcome variable an…
Subscribe to:
Post Comments (Atom)
0 Response to verifying a condition for three consecutive years in panel data
Post a Comment