Hi Statalist geniuses,
I am quite new to Stata and I am trying to understand the difference between Stata's forecast and predict functions.
I tried to read the methods part in the manual to see what each of them does, but I don't really understand it.
Basically what I am trying to do is generate out of sample forecasts of investment based on lags of GDP Tobin's Q and an uncertainty variable.
I want to do recursive estimation for 12 quarters.
What I have been doing is this:
Does that provde me with dynamic forecasts, based on recursive rather than rolling window?
Or would I use predict and somehow create a loop?
I'm sorry if this is a really stupid question, I've been trying to figure this out for a day and I've become kinda blind.
Thanks so much for your help!
I am quite new to Stata and I am trying to understand the difference between Stata's forecast and predict functions.
I tried to read the methods part in the manual to see what each of them does, but I don't really understand it.
Basically what I am trying to do is generate out of sample forecasts of investment based on lags of GDP Tobin's Q and an uncertainty variable.
I want to do recursive estimation for 12 quarters.
What I have been doing is this:
Code:
reg I L(1/4).GDP L(0/4).Q L(0/4).UNC, robust] estimates store Spec1 forecast create spec1forecast, replace forecast estimates spec1 forecast solve, prefix(f_) begin(tq(2016q3)) end(tq(2019q1))
Does that provde me with dynamic forecasts, based on recursive rather than rolling window?
Or would I use predict and somehow create a loop?
I'm sorry if this is a really stupid question, I've been trying to figure this out for a day and I've become kinda blind.
Thanks so much for your help!
Comment