小弟想用GARCH模型做一个样本不断向后推移的预测,但是运行的时候eviews显示样本出错:Attempt to set sample outside of workfile range.
我不知道哪里出错了,代码如下:
for !1=1 to 252
smpl 1999 2008m12+!1
equation arc1.arch(h) return_sp500 c
arc1.makegarch cvar
smpl !1 !1
genr series_name=cvar
next
我附上自己的数据(论坛不能传Eviews的文件,我转成excel的了),希望高手指点下哪里出错了。感激不尽!任何有价值的回复我都会评分,多谢