Hi,
I am totally new to Stata (Version 17.0). I´ve got a data set icluding the variables ticker (some kind of ID Code for each company, ZOTS and ZY in the extract below) and anndats (announcement dates) as well as multiple other variables.
Now I need to drop all observations, where ticker and anndats are the same.
Here is an extract from list ticker anndats:
ZOTS 03nov2015
ZOTS 16feb2016
ZOTS 16feb2016
ZOTS 04may2016
ZOTS 04may2016
---------------------------
ZY 15nov2016
ZY 22feb2017
ZY 22feb2017
ZY 16may2017
Like, for example, i want to drop the third, the fifth and the eigth row, but keep the rest. How do I do that?
Related Posts with Drop duplicates depending on two variables
bootstrap test.Dear All, I have this dataset Code: * Example generated by -dataex-. To install: ssc install datae…
Effect size of moderation/interaction in fixed effects modelDear list, I wonder how to best calculate the effect size of an interaction term in a fixed effects …
Creating group IDs for geospatial event dataI have a dataset of certain events that I want to analyze based off of location. At the most granula…
Transform quarterly data to monthly data using interpolateHi all, I have some trouble to transform quarterly data to monthly data. I try to use denton and lin…
GMM or FE? Is my model dynamic ?Dear all, I am working with survey panel data covering 32 years and very large amount of individual…
Subscribe to:
Post Comments (Atom)
0 Response to Drop duplicates depending on two variables
Post a Comment