Closed p-wegmueller closed 5 years ago
forecast.midas_r
requires full high frequency data for the low frequency periods. Your low frequency period contains 3 high frequency periods, but you supply data only for two. Hence the error:
Error in mls(indic, 1:11, 3) : Incomplete high frequency data
If all data is supplied then forecasting succeeds:
forecast(m1, list(indic = c(indic_fcst,NA)), method = "static")
Qtr3
2018 0.5544495
This is evident from the examples given in forecast.midas_r
manual and the examples in JSS articles.
thanks for your prompt reply. Yet, if I would like to have a forecast also for 2018Q4, then the specificiation
c(indic_fcst, rep(NA, 4)
would give NA for GDP. How do I compute multiperiod forecasts?
Multiperiod forecasts are supported. You just need to supply the data. Your model now currently depends on the previous period data. So forecasting multiple periods ahead you either need to change your model, or supply the forecasts of the variables on the right hand side.
Hi there, I am new to the midasr package and still encounter some difficulties in what should be a simple exercise. My target variable is Swiss GDP up to 2018Q2, my indicator is KOF business situation for which I have two observations already in 2018Q3 (July and August). Now I would like to make a simple Nowcast of GDP in 2018Q3 with midasr, however I am running into the error in the title.
Any help is greatly appreciated. Philipp