function %%garchh time
type symm %%garchh
type integer time
*
compute %%garchh=%zeros(%nvar,%nvar)
do i=1,%nvar
compute %%garchh(i,i)=(1-garchp(i)(6)-garchp(i)(7))*(garchp(i)(1)*M(time)+garchp(i)(2)*T(time)+garchp(i)(3)*W(time)+garchp(i)(4)*H(time)+garchp(i)(5)*F(time))+$
garchp(i)(6)*uu(time-1)(i,i)+garchp(i)(7)*hh(time-1)(i,i)
end do i
end
economics2012 wrote:## SR10. Missing Values And/Or SMPL Options Leave No Usable Data Points
Do you think the problem is in the daily data? I have gaps for holidays. So , I am not sure whether RATS daily format accept it ????
economics2012 wrote:I still don't understand this one:
compute garchp(i)=||%sigma(i,i),1,1,1,1,1,%sigma(i,i),.20,.60||
economics2012 wrote:Also, I don't see why you multiply by (1-garchp(i)(6)-garchp(i)(7)) below:
compute %%garchh=%zeros(%nvar,%nvar)
do i=1,%nvar
compute %%garchh(i,i)=(1-garchp(i)(6)-garchp(i)(7))*(garchp(i)(1)*M(time)+garchp(i)(2)*Tu(time)+garchp(i)(3)*W(time)+garchp(i)(4)*H(time)+garchp(i)(5)*F(time))+$
garchp(i)(6)*uu(time-1)(i,i)+garchp(i)(7)*hh(time-1)(i,i)
end do i
end
economics2012 wrote:Thanks a lot Tom, I will give it a try.
I do have another question. When I run the GARCH (1,2) OR GARCH(2,1) with one lag in the mean equation, I got errors! Can you please explain to me why?
Return to ARCH and GARCH Models
Users browsing this forum: No registered users and 1 guest