I am new to Eviews and have never programmed before, so my apologies for the ignorance that will shine through in the code I am about to post below.
My problem is the following. I have a sample consisting of 1757 observation and I want to perform dynamic one step ahead forecasting on the last 450 observation. The estimation sample for every 1 step ahead forecast should include all observations prior to the respective forecast and is thus increasing with the number of forecasts. I have accumulated a little knowledge on this forum, but have difficulty understanding some of the examples posted by board members, so I hope I can show you the very small program I have made (which is obviously not working properly).
Code: Select all
'define loop
for !i = 1 to 450
smpl @first @first+(1757-451)+!i
equation forecast1.ls co_5_d_i c @trend ar(1) ma(1 to 3) @expand(@quarter, @dropfirst) tu we th fr sa su
'series to store estimates
series fcast
'dynamic forecast arma model
smpl @first+(1757-450)+!i @first+(1757-450)+!i
forecast1.forecast yhat
fcast = yhat
next
smpl @allHope you can help out (and if you can, please dummy it down a bit for me :D )
Thanks a lot!
Etienne
