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
Calculating and graphing moving averages in a panel data with a self-defined time variableHi everyone, I have a household-level panel data for two years. In the data, I also have the date o…
STATA LOOP for Data Managementfor the dataset like the following, I want to change the value of G7_A6 which is either 1 or 2 based…
Storing regression results in a Temp Table in order to afterwards run a two sample t testHello! I am having a problem trying to perform a two sample t test on the outcome of two regression…
Radf command does not run (error 3499)Hi all, I am trying to run a GSADF test through the radf command in Stata 16. I keep getting this e…
metan on Stata 16 column nameHi everyone, I've been recently using "metan" on Stata 16 to update my previous meta-analysis resul…
Subscribe to:
Post Comments (Atom)
0 Response to dropping variables
Post a Comment