I am trying to perform a rolling window forecast using a MIDAS equation to estimate the coefficients. I've been trying to use the basic rolling regression programming posted on this forum (http://forums.eviews.com/viewtopic.php?t=878) to first establish if I was able to retrieve these rolling regression coefficients before forecasting.
The MIDAS regression is an Almon PDL with polynomial degree 2, where I try to estimate gcpi with c cpi(-1) and 30 lags of bpp.
At the moment I have the following;
Code: Select all
!window = 67 ' set window size
!step = 1 ' set step size
!length = @obsrange ' get size of workfile
equation midas ' declare equation for estimation
!nrolls = @round((!length-!window)/!step) 'calculate number of rolls
matrix(4,!nrolls) coefmat 'matrix to store coefficient estimates where 4 is the number of coefficients 2 low frequency and 2 high frequency coef.
!j=0 'variable keeping track of how many rolls we've done
for !i = 1 to !length-!window+1-!step step !step ' move sample !step obs at a time
!j=!j+1
smpl @first+!i-1 @first+!i+!window-2 ' set sample to estimation period
' estimate equation
MIDAS(fixedlag=30, midwgt=step, steps=2) GCPI C CPI(-1) @ 12bpp\gbpp(-30)
'store coefficients
colplace(coefmat,midas.@coefs,!j)
next
show coefmat"COLPLACE(COEFMAT, MIDAS.@COEFS,1)".
Could someone explain me if I've made an mistake and/or tell me if it is even possible to do a MIDAS rolling regression in Eviews 9.5 at the moment?
*I added my program and wf if needed!
Thanks and anything is welcome!
Kind Regards,
Robert
