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
Interactions, Inconsistent resutlsHi all,, I am getting inconsistent results and hope that someone can help me understand the source.…
Using atcontrasts in margins for a mixed effect modelHi everyone I am currently working on a project (using Stata 15) to analyse changes in kidney funct…
GLM or Tobit Regression & Forecast for different distributions (incl. zero inflation)Dear Statalists, I'd very much like to hear your opinion on the following. What I’m trying to do: …
Unbalanced panel data analysisHi dear all i hope you all fine ...i am undergoing a problem in running analysis on the data ,the de…
Implementing Wild Bootstrap T Standard Errors in Regression OutputHello everyone I am investigating the effects of an exogenous economic shock on the unsecured credi…
Subscribe to:
Post Comments (Atom)
0 Response to Selecting only 10 consecutive years in a dataset
Post a Comment