Hi Tom. I have run somthing like the following before. However, I'm stumped now trying to do it on winrats. I'm sure my coding is problematic. Two questions. Frist, would you be willing to review the following and let me know wht I'm doing wrong? D4 and E4 are measuring volatility spillovers between the two variables. I intend to expand this to three or 4 variables.
Second, would I be able to include options on the canned GARCH (p, Q) command to account or volatility spillovers or any other exogenous (perhaps) variables such as dummies, etc. into the variance and maybe the covariance equations? Any suggestions and help on the econometrics or coding is much appreciated. Thanks. Bahram
OPEN DATA "C:\Users\Bahram\Documents\paps_10\WEA_10\data_wea10.xls"
DATA(FORMAT=XLS,ORG=COLUMNS) 1 4881 png vng ong pcrb vcrb ocrb pho vho oho pcl vcl ocl
set u = 0.0
set v = 0.0
set c11=0.0
set c22=0.0
set c12=0.0
set Y1=pho
set Y2=png
nonlin A0 A1 B0 B1 D0 D1 D2 D3 D4 E0 E1 E2 E3 E4 F0 F1 F2
FRML RESID1=Y1-A0-A1*Y1{1})
FRML RESID2=Y2-B0-B1*Y2{1})
FRML H11 = D0 + D1*C11{1} + D2*U{1}**2 + D3*NG*U{1}**2 + D4*V{1}**2
FRML H22 = E0 + E1*C22{1} + E2*V{1}**2 + E3*NS*V{1}**2 + E4*U{1}**2
FRML H12 = F0 + F1*C12{1} + F2*U{1}*V{1}
DEC SYMM SIGMA
DEC VECT UVECT
FRML GLOGL = C11(T)=H11,C22(T)=H22,C12(T)=H12,U(T)=RESID1,V(T)=RESID2, $ SIGMA=||C11(T)|C12(T),C22(T)||, UVECT=||U(T),V(T)||, $
-.5*LOG(%DET(SIGMA))-.5*%QFORM(INV(SIGMA),UVECT)
LINREG Y1
# CONSTANT Y1{1}
COMPUTE A0=%BETA(1), A1=%BETA(2)
COMPUTE D0=%SEESQ, D1=.5, D2=.1, D3=.1, D4=.1
LINREG Y2
# CONSTANT Y2{1}
COMPUTE B0=%BETA(1), B1=%BETA(2)
COMPUTE E0=%SEESQ, E1=.5, E2=.1, E3=.1, E4=.1
COMPUTE F0=0, F1=0, F2=0
MAXIMIZE (method=bhhh) GLOGL
The result:
## NL3. FRML GLOGL Has Not Been Defined
