- Code: Select all
compute %%garchh=%zeros(%nvar,%nvar)
do i=1,%nvar
compute %%garchh(i,i)=(garchp(i)(1)+garchp(i)(2)*M(time)+garchp(i)(3)*Tu(time)+garchp(i)(4)*W(time)+garchp(i)(5)*TH(time))+$
garchp(i)(6)*uu(time-1)(i,i)+garchp(i)(7)*hh(time-1)(i,i)
end do i
end
In the previous one I didn't multiply by (1-garchp(i)(6)-garchp(i)(7)). So, the below one is the correct one. Am I right?
- Code: Select all
compute %%garchh=%zeros(%nvar,%nvar)
do i=1,%nvar
compute %%garchh(i,i)=(1-garchp(i)(6)-garchp(i)(7))*(garchp(i)(1)+garchp(i)(2)*M(time)+garchp(i)(3)*Tu(time)+garchp(i)(4)*W(time)+garchp(i)(5)*TH(time))+$
garchp(i)(6)*uu(time-1)(i,i)+garchp(i)(7)*hh(time-1)(i,i)
end do i
end
Many thanks
