GARCH with ARMA mean equation
Posted: Mon Jul 04, 2011 8:55 pm
Hi. Could you please look and see what is wrong in the following code? It gives an error in both estimation and rolling process:
In both cases the error is: "## SR10. Missing Values And/Or SMPL Options Leave No Usable Data Points". I can't understand why that happens.
Thanks in advance.
Code: Select all
OPEN DATA "C:\Documents and Settings\admin\Desktop\FINAL - Daily.RAT"
CALENDAR(D) 2006:1:4
DATA(FORMAT=RATS) 2006:01:04 2010:11:26 RT
*** Estimating GARCH
garch(p=1,q=1,reg,resids=u,hseries=h) 2 506 rt
# constant rt{1} u{1}
***Rolling GARCH
compute width=505
dec vect[series] coeffs(6)
do gend=width,1278
if gend==width
garch(p=1,q=1,reg,resids=u,hseries=h,noprint) gend-width+2 gend rt
# constant rt{1} u{1}
else
garch(p=1,q=1,reg,resids=u,hseries=h,initial=%beta,hessian=%xx,noprint) gend-width+2 gend rt
# constant rt{1} u{1}
compute %pt(coeffs,gend,%beta)
end do gend
Thanks in advance.