Hello,
I'm working on some stock data and some stocks are dead or delisted before the end of my sample period. To avoid any survivorship bias, I do want to consider these stocks in my analysis. Is there a way in Stata to replace an observation if all the following observations are equal to zero?
I'm working on some stock data and some stocks are dead or delisted before the end of my sample period. To avoid any survivorship bias, I do want to consider these stocks in my analysis. Is there a way in Stata to replace an observation if all the following observations are equal to zero?
Comment