Hello all,
Currently I am writing my master thesis and researching the predictive power of volatility, high and low volatility and leverage on the probability of a market crash in the S&P 500 index.
I have performed my normal lagged logistic regressions (with the optimal amount of lags suggested by the varsoc command), and want to perform an out-of-sample analysis. My data ranges from 1969M1 to 2018M4. From 1982M1 up until 2018M4, I want to obtain a forecast each month based on the data available in the previous months (one-step ahead forecast if I am correct). I have read several forum posts and searched on the internet for quite some time now, and just cannot figure it out on my own.
An example:
My dependent variable is CrashMonth which takes on a value of 1 if the return is below a certain benchmark and 0 otherwise.
My independent variables are lag1Vol, lag2Vol, lag3Vol, lag4Vol, lag5Vol and lag6Vol as suggested by the varsoc command, which are monthly lags of the volatility.
I am able to use the predict function to for example predict the probability on a market crash in 1982M2 with predict y if DateM<=tm(1982/2).
This however just gives me a value of 0.0701, which I interpret as the chance of a probability of a market crash in that particular month is 7.01%.
This however does not provide me with useful information on for example the mean marginal effects of the lagged volatility variables.
Is there a way to perform a rolling forecast for each month after 1982M2 while using the data of the selected variables in the previous months?
Is there a way to report the results from such rolling forecast in a clarifying table? Since performing the predict option gives me over 300 data points and will be hard to interpret by any reader.
I am looking forward to your responses. If you have any questions please feel free ask.
Max Thorsen
Currently I am writing my master thesis and researching the predictive power of volatility, high and low volatility and leverage on the probability of a market crash in the S&P 500 index.
I have performed my normal lagged logistic regressions (with the optimal amount of lags suggested by the varsoc command), and want to perform an out-of-sample analysis. My data ranges from 1969M1 to 2018M4. From 1982M1 up until 2018M4, I want to obtain a forecast each month based on the data available in the previous months (one-step ahead forecast if I am correct). I have read several forum posts and searched on the internet for quite some time now, and just cannot figure it out on my own.
An example:
My dependent variable is CrashMonth which takes on a value of 1 if the return is below a certain benchmark and 0 otherwise.
My independent variables are lag1Vol, lag2Vol, lag3Vol, lag4Vol, lag5Vol and lag6Vol as suggested by the varsoc command, which are monthly lags of the volatility.
I am able to use the predict function to for example predict the probability on a market crash in 1982M2 with predict y if DateM<=tm(1982/2).
This however just gives me a value of 0.0701, which I interpret as the chance of a probability of a market crash in that particular month is 7.01%.
This however does not provide me with useful information on for example the mean marginal effects of the lagged volatility variables.
Is there a way to perform a rolling forecast for each month after 1982M2 while using the data of the selected variables in the previous months?
Is there a way to report the results from such rolling forecast in a clarifying table? Since performing the predict option gives me over 300 data points and will be hard to interpret by any reader.
I am looking forward to your responses. If you have any questions please feel free ask.
Max Thorsen
Comment