Hello,
Could someone please help me dropping some observations? I'm investigating the influence of patenting on the return on investment of firms. Now I want to drop the companies that never had a patent between variable fyear (fiscal year) 1997-2015 (see the example company in the screenshot). But I want to keep them if they had a patent in this time period. So, also if they only have 1 patent in that time period, I want to keep them in my dataset. I'm struggling to find the right code so could someone please help me?
Thanks!Array
Related Posts with dropping observations if variable is zero between time period
treated group with if conditionHello everyone, I am relatively new to Stata and I am trying to create a dummy variable to identify …
Multinomial logistic regression with Panel DataSuppose you have panel data (many observations for each person) and you have a discrete ordered outc…
Finding the right Instrument VariablesHi, i am examining relation between firm performance and instiutional ownership. I am now strugglin…
Efficient way to calculate maximum number of observations before and after a specific value in a columnHi, I am using STATA version 16 and would need some help in counting the maximum number of observat…
Creating a New Variable from a Dummy VariableI want to create a variable which counts the total number of people on a company board per year. The…
Subscribe to:
Post Comments (Atom)
0 Response to dropping observations if variable is zero between time period
Post a Comment