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
Power calculation using pairwise matching design.Hi All, For our cluster level specification, we are currently using “clustersampsi” command in Stat…
Spectral decomposition in MataHi Mata users, I would like to know if there is a built-in function in Mata that calculates the squ…
Latent Class Analysis - How to identify the main drivers?Hi All! I ran a LCA to identify the best possible segmentation of classes in a population. I used L…
Export trade durationHello, I am trying to assign consecutive years of exports to my data. My data consists of Years, pr…
Decimal places control when exporting to tex file using logoutDear Statalists, I have a few numbers in my dta which I would like them to remain in this format (ro…
Subscribe to:
Post Comments (Atom)
0 Response to dropping variables
Post a Comment