自顶!
我的程序是按照RATS User’s Guide UG–301写的:
GARCH-M
To do garch-mwith a multivariatemodel, you have to plan ahead a bit. On your
GARCHinstruction, you need to use the option MVHSERIES=SYMM[SERIES]which will
save the paths of the variances (example: MVHSERIES=HS). Your regression equations
for the means will include references to the elements of this array of series. Since
those equations need to be created in advance, you need the SYMM[SERIES]first
as well. This includes as explanatory variables in each equation all the covariances
which involve the residuals from an equation.
dec symm[series] hhs(3,3)
clear(zeros) hhs
equation jpneq xjpn
# constant hhs(1,1) hhs(1,2) hhs(1,3)
equation fraeq xfra
# constant hhs(2,1) hhs(2,2) hhs(2,3)
equation suieq xsui
# constant hhs(3,1) hhs(3,2) hhs(3,3)
group garchm jpneq fraeq suieq
garch(model=garchm,p=1,q=1,pmethod=simplex,piters=10,$
mvhseries=hhs)