open denmark.gdt
set verbose off
series frcst = NA
loop i=1..20 -q #out-of-sample (20 observations)#
smpl 1+i 5+i #initial sample (5 observations)#
ols LRM const LRY
fcast 6+i 6+i #one-step-ahead-rolling-windows-forecasting#
frcst[6 + i] = $fcast
endloop