Dear Statalist,
I am a new user of Stata and I use it for my master thesis. I have created a dataset of European firms for the years 2006-2015. The number of observations is 3.136.622, but not every firm reported every year. My goal is to keep only the firms that reported their financials for the whole 10-year period and drop everything else. An idea I had was to create a dummy and then sum the total of the dummies for every company, and then say "drop if dummy<10" but cannot get it right. I upload a screenshot with the dataset. Could you help me with the coding? Any working solution is welcome.
Thank you in advance!
Array
Related Posts with Selecting only 10 consecutive years in a dataset
Median Follow-up timeHello, could somebody give me an advice on how to calculate median follow-up time? Thank you very mu…
How can i save the output of pwcorr and correlate into dta?Thanks a lot!I want to compute the correlation of x between different stocks in each half year. There are 20+ hal…
Reporting observations and adj R^2 at the end of the table using outreg2Hi, I am using outreg2 to get the regression output. But outreg2 report results the following way. …
Need help with formatting in asdocI am having an issue with formatting the values in the table while using asdoc and tabstat. for exam…
Nearest matching (without replacements)Hi everyone, I have the following dataset for which I need to do a 1-by-1 match of companies (wo re…
Subscribe to:
Post Comments (Atom)
0 Response to Selecting only 10 consecutive years in a dataset
Post a Comment