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
Twoway graph of treated/control means by group with smoothingHi all, I am trying to generate some plots using the means for treatment/control group for various g…
random fixed effect model of panel dataHi, I am trying to anlysis an (unbalanced) panel data which covers around 6000 companies (79000 fri…
Matching data in a case controlHello there, I am trying to match data for a case control study on a positive cancer diagnosis on b…
Specifying Identity Equation for Forecast of ARIMA(0,1,1) With and Without a ConstantI am estimating an arima(0,1,1) and then using the forecast suite but am having difficulty in specif…
Multiple conditions within loopHello, Stata Users! My question might seem too simple, but I am struggling with generating new vari…
Subscribe to:
Post Comments (Atom)
0 Response to dropping observations if variable is zero between time period
Post a Comment