11177 14

[实际应用] 求DCC-GARCH实例eviews文档 [推广有奖]

  • 0关注
  • 0粉丝

小学生

21%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
136 点
帖子
3
精华
0
在线时间
7 小时
注册时间
2011-10-5
最后登录
2011-10-9

楼主
低调阿弥陀佛 发表于 2011-10-5 23:14:14 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
小弟苦逼选了一完全陌生的课题,苦逼到现在还不会用eviews,望高人指点。
在此跪求一个DCC-GARCH在Eviews中的实际例子。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:DCC-GARCH EVIEWS GARCH Eview Views

沙发
低调阿弥陀佛 发表于 2011-10-5 23:17:40
看在小弟国庆还在苦逼的份上,那位高人分享一下做过的Eviews文档啊?

藤椅
richardflying 发表于 2011-10-6 01:02:39
Eviews菜单功能好像做不了DCC分析的,不知道命令功能行不行!更多的是用R语言和Matlab做的

板凳
yucongy 发表于 2011-10-6 10:55:40
用eviews做dcc garch也得编程才行~
建议楼主用R、s-plus或matlab、gauss等软件去做dcc garch,
这些都有已经写好的程序
不经意间一年过去了,发现学到的东西不少,但是要学的东西却越来越多
若有问题咨询,请邮件联系:yucong134@163.com

报纸
yucongy 发表于 2011-10-6 10:56:50
如果实在需要用eviews做dcc garch的话
去google搜eviews论坛,应该可以找到dcc garch的eviews程序
祝好运
已有 1 人评分学术水平 热心指数 收起 理由
quga + 1 + 1 热心帮助其他会员

总评分: 学术水平 + 1  热心指数 + 1   查看全部评分

不经意间一年过去了,发现学到的东西不少,但是要学的东西却越来越多
若有问题咨询,请邮件联系:yucong134@163.com

地板
yucongy 发表于 2011-10-6 10:57:55
  1. 'change path to program path
  2. %path=@runpath
  3. cd %path

  4. 'load workfile containing the return series
  5. load nikkei_sp.WF1

  6. 'set sample range
  7. sample s1 1/06/1995 12/25/2007
  8. scalar pi=3.14159

  9. 'defining the return series in terms of y1 and y2
  10. series y1=r_nikkei
  11. series y2=r_sp

  12. 'fitting univariate GARCH(1,1) models to each of the two returns series
  13. equation eq_y1.arch(1,1,m=1000,h) y1 c
  14. equation eq_y2.arch(1,1,m=1000,h) y2 c

  15. 'extract the standardized residual series from the GARCH fit
  16. eq_y1.makeresids(s) z1
  17. eq_y2.makeresids(s) z2

  18. 'extract garch series from univariate fit
  19. eq_y1.makegarch() garch1
  20. eq_y2.makegarch() garch2

  21. 'Caculate sample variance of series z1, z2 and covariance of z1and z2 and correlation between z1 and z2
  22. scalar var_z1=@var(z1)
  23. scalar var_z2=@var(z2)
  24. scalar cov_z1z2=@cov(z1,z2)
  25. scalar corr12=@cor(z1,z2)

  26. 'defining the starting values for the var(z1) var(z2) and covariance (z1,z2)
  27. series var_z1t=var_z1
  28. series var_z2t=var_z2
  29. series cov_z1tz2t=cov_z1z2

  30. 'declare the coefficient starting values
  31. coef(2) T
  32. T(1)=0.2
  33. T(2)=0.7

  34. ' ...........................................................
  35. ' LOG LIKELIHOOD for correlation part
  36. ' set up the likelihood
  37. ' 1) open a new blank likelihood object and name it 'dcc'
  38. ' 2) specify the log likelihood model by append
  39. ' ...........................................................

  40. logl dcc
  41. dcc.append @logl logl

  42. 'specify var_z1t, var_z2t, cov_z1tz2t
  43. dcc.append var_z1t=@nan(1-T(1)-T(2)+T(1)*(z1(-1)^2)+T(2)*var_z1t(-1),1)
  44. dcc.append var_z2t=@nan(1-T(1)-T(2)+T(1)*(z2(-1)^2)+T(2)*var_z2t(-1),1)
  45. dcc.append cov_z1tz2t=@nan((1-T(1)-T(2))*corr12+T(1)*z1(-1)*z2(-1)+T(2)*cov_z1tz2t(-1),1)

  46. dcc.append pen=(var_z1t<0)+(var_z2t<0)

  47. 'specify rho12
  48. dcc.append rho12=cov_z1tz2t/@sqrt(@abs(var_z1t*var_z2t))

  49. 'defining the determinant of correlation matrix and determinant of Dt
  50. dcc.append detrRt=(1-(rho12^2))
  51. dcc.append detrDt=@sqrt(garch1*garch2)
  52. dcc.append pen=pen+(detrRt<0)
  53. dcc.append detrRt=@abs(detrRt)

  54. 'define the log likelihood function
  55. dcc.append logl=(-1/2)*(2*log(2*pi)+log(detrRt)+(z1^2+z2^2-2*rho12*z1*z2)/detrRt)-10*pen

  56. 'estimate the model
  57. smpl s1
  58. dcc.ml(showopts, m=500, c=1e-5)

  59. 'display output and graphs
  60. show dcc.output
  61. graph corr.line rho12
  62. show corr
复制代码
不经意间一年过去了,发现学到的东西不少,但是要学的东西却越来越多
若有问题咨询,请邮件联系:yucong134@163.com

7
yucongy 发表于 2011-10-6 10:58:42
呃 帮你找了下 直接在eviews论坛中找到了
不经意间一年过去了,发现学到的东西不少,但是要学的东西却越来越多
若有问题咨询,请邮件联系:yucong134@163.com

8
yucongy 发表于 2011-10-6 11:01:03
这个应该是采用两步估计法进行估计的
不经意间一年过去了,发现学到的东西不少,但是要学的东西却越来越多
若有问题咨询,请邮件联系:yucong134@163.com

9
jinrong1616 发表于 2012-6-25 10:31:30
楼上写的代码结果异常!

10
zoezuo 发表于 2013-3-13 00:27:00
楼主,你的DCCGARCH用EVIEWS做出来了吗?

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-31 00:05