Dear Statalist users,
I have a data set of stock returns. The data set contains returns, dates and firm identifiers. For each observation (uniquiley identified by date and firm identifier), I want to compute the standard deviation of returns of the firm from t= -205 to t= -6 before the current return t=0.
I was looking into "rolling", "mvsumm"and "rollstat" but did not figure out how to solve this.
It would be really kind if someone could help me with this, I have been trying to find a solution for about 2 hours.
Thanks
Jean-Marie
I have a data set of stock returns. The data set contains returns, dates and firm identifiers. For each observation (uniquiley identified by date and firm identifier), I want to compute the standard deviation of returns of the firm from t= -205 to t= -6 before the current return t=0.
I was looking into "rolling", "mvsumm"and "rollstat" but did not figure out how to solve this.
It would be really kind if someone could help me with this, I have been trying to find a solution for about 2 hours.
Thanks
Jean-Marie
Comment