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
Model Validation Using StataHi all, I have a question about how to do model validation using Stata. I used a training dataset …
Two-way graph for panel dataDear, I want to plot a variable in panel data. Below is an example of my data. Code: year provinc…
Difference between two dates in daysHi all, I have a date of admission (ex. 02mar2018 00:00:00) and date of intervention (ex. 05mar2018…
Validity check for South African identity numbers using the Luhn algorithmTwo files (one ado; one do) attached, which checks a variable containing South African id numbers fo…
Two-way graph for panel dataDear, I want to plot a variable in panel data. Below is an example of my data. Code: year provinc…
Subscribe to:
Post Comments (Atom)
0 Response to dropping observations if variable is zero between time period
Post a Comment