epoh 发表于 2012-3-3 19:53 
请仔细区别,这两个是不一样的
rho12后面有个space
牛人,您好:
我跑出的程序出现结果:
MV_GARCH, DCC - Estimation by BFGS
Convergence in 116 Iterations. Final criterion was 0.0000000 <= 0.0000100
Usable Observations 673
Log Likelihood 4687.56091043
Variable Coeff Std Error T-Stat Signif
*******************************************************************************
1. RF{2} 0.101051369 0.096904607 1.04279 0.29704454
2. RS{2} -0.095903294 0.093981322 -1.02045 0.30751482
3. Constant -0.000511704 0.000421193 -1.21489 0.22440750
4. RF{2} 0.060138106 0.103521146 0.58093 0.56129046
5. RS{2} -0.071200321 0.100519812 -0.70832 0.47874577
6. Constant -0.000398511 0.000445113 -0.89530 0.37062573
7. C(1) -0.000004406 0.000015938 -0.27643 0.78221593
8. C(2) 0.000117704 0.000031127 3.78146 0.00015591
9. A(1,1) 0.205945288 0.072011458 2.85990 0.00423780
10. A(1,2) -0.140697216 0.068794302 -2.04519 0.04083642
11. A(2,1) 0.200367584 0.070861246 2.82760 0.00468977
12. A(2,2) -0.156076700 0.060007148 -2.60097 0.00929610
13. B(1,1) 0.162188924 0.311615107 0.52048 0.60273020
14. B(1,2) 0.812198458 0.389425290 2.08563 0.03701183
15. B(2,1) 2.251965599 0.317996740 7.08173 0.00000000
16. B(2,2) -1.699805811 0.225693563 -7.53148 0.00000000
17. DCC(1) 0.087020104 0.035390105 2.45888 0.01393703
18. DCC(2) 0.188500415 0.197527635 0.95430 0.33993234
19. Shape 5.110394618 0.680558790 7.50912 0.00000000
## SX22. Expected Type SERIES, Got REAL Instead
>>>> set rho12 <<<<
红色这里到底什么意思啊,我的程式是:
calendar
open data "D:\123\1.xls"
all 677
data(format=xls,org=columns)
set rs =log(S/S{1})
set rf =log(F/F{1})
system(model=var2)
variables rf rs
lags 2
det constant
end(system)
estimate
garch(p=1,q=1,model=var2,variances=varma,mv=dcc,method=bfgs,iters=200,pmethod=simplex,piters=20,hmatrices=hh,rvectors=rd,distrib=t)
set rho12 =hh(t)(1,2)/sqrt(hh(t)(1,1)*hh(t)(2,2))
graph(header="Correlation of rs with rf")
# rho12