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
unsuccessful mergeHello everyone! I am trying to merge two data files from different sources using the command merge …
npregress and Bandwidth selection with Bootstrap CIDear all, I have a question that is both technical (Stata) and theoretical. Based on the help file f…
Exporting/displaying boottest resultsHi everyone, I am running a difference in differences regression with Panel data on Stata version 1…
How to do an analysis of transition frequencies in a placebo controlled study?Hi everyone, I want to do an analysis of transition frequencies in a placebo controlled sleep study…
Expanding backwardsHello, Im working on a dataset and want to expand my dataset backwards for 2 months extra. The data…
Subscribe to:
Post Comments (Atom)
0 Response to verifying a condition for three consecutive years in panel data
Post a Comment