Hi all,
I have daily stock returns in my dataset. One of the variables is the stock identifier (so for this variable the stocks are repeated for each date). I have one variable that is equal to 5523 if the stock did stocksplit on one day. I would like to keep only the stocks that did split. The problem is that when I try to do this, I only manage to keep the observations for the day of the stock split and I loose all the other daily observations for the stocks that did return. How I can proceed to keep only the stocks that did split and with all the observations of each stock?
Thank you
Related Posts with dropping variables
Split file by group i.e. group 1 (non clinical) vs group 2 (clinical)Hi there, Might someone please advise how I split my Stata dataset by 1 variable "Group" which is h…
Very weird spmap problem: "master data not sorted"Hello all Suddenly, I am having some unexplained problem with spmap: syntax which previously was wo…
Control variable that varies accross time but not accros countries how to add to dataset and regressionHello everyone, For my regression i am using the VIX as a proxy for volatility and the TED spread a…
Displaying results in full form - double formatHi All, I am using the following command, in stata 13.1 total subsidyamt, over(fiscal_year1) to c…
Quintile Sorting two variablesI have monthly observations from various funds over along amount of time but the time series are unb…
Subscribe to:
Post Comments (Atom)
0 Response to dropping variables
Post a Comment