Closed Knixd closed 7 years ago
Your estimation sample ends at 2011, since this is the last value in response variable. So the forecast
assumes that the forecasts start at 2012, since this is the first value not available for the estimation. The forecasts for 2011 and 2010 are actually the in-sample predicted values. Since you've lagged all the predictor variables, your forecasts do not depend on the forecasts of predictor variables, i.e. you get the same result for:
forecast(mr.dyn, list(trend = trendn, x = rep(NA,frq*h)), method = "dynamic")
and
forecast(mr.dyn, list(trend = trendn, x = rep(NA,frq*h)), method = "static")
Hope this clears things a bit.
PS. Sorry for late reply. Write me directly to my maintainer email for faster response.
Hello,
The following is a Midas regression that has no new data as per p.27 of the midasr user guide. This example code is largely from the example in the forecast function.
To the best of my understanding, the forecasted time references are incorrect.
I've set the lags back 3 horizon's worth of 12 higher frequency lags (3*12) with the understanding that together with the forecast function I am forecasting doing one step ahead forecasts three times using data up to Yt-3 to forecast until Yt. Essentially, forecasting Yt-2, Yt-1, and Yt. Note that the Midas user guide only does 1 horizon with no new data.
In the terms of this code, Yt is 2011.
Because of my forecast setup, I expected the dates of the forecasted values to be 2010, 2011, and 2012. They're not. They're 2012, 2013, 2014. From checking the algebraic equation on p. 27 in the Midas User Guide and their subsequent example I can't find any reason why the dates would be 2012, 2013, 2014.
By setting my high-frequency lags back by the suggested (frq*h) amount and receiving 2012-20134 forecasts, wouldn't this infer I'm using Yt-3 to forecast Yt+1, Yt+2, and Yt+3 rather than Yt-2, Yt-1, and Yt?
It's very possible I'm misunderstanding something. Ultimately I need to know how to forecast a Q4 and a Q1 variable with data up to Q3 and an AR element (dynamic).
Gives the forecast output of