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
Major update to -moremata-A new version of -moremata- is available from SSC. Type Code: . ssc install moremata, replace to i…
Add Cohen's d effect size to esttab t-test tableHi Everyone, I am trying to create a (Latex) table in which I compare the means of two different su…
Identify value label names and storing in macroDear All, I have a dataset imported into STATA. While importing, variable names get changed to lowe…
XTCSD PesaranHello everyone, Sorry to bother you all. I am currently running my panel data model with N=37 and T…
Update and paper on -reldist-The -reldist- package (relative distribution analysis) has been updated on SSC. Type Code: . ssc i…
Subscribe to:
Post Comments (Atom)
0 Response to verifying a condition for three consecutive years in panel data
Post a Comment