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
Sensitivity analysis for missing valueDear statalist, I'm running a logistic regression and there are two independent variables with miss…
¿Como mantener la escala x: 2007 - 2018 y graficar solo una barra 2017?* Example generated by -dataex-. To install: ssc install dataex clear input float(año pc pc_rural pc…
Panel Data Average Line GraphsHi everyone, I am using panel data and am trying to graph CEO compensation over a specific time peri…
Rolling regression GARCH volatility predictionHello Statalisters, I have been attempting to run a rolling GARCH model that predicts variance with…
How to generate a price index using the output of a regression (real estate)?Hi all, I would like to generate a price index to determine price changes between house prices in t…
Subscribe to:
Post Comments (Atom)
0 Response to Drop duplicates depending on two variables
Post a Comment