楼主: bottlechang
2887 7

[问答] rats 软件多元GARCH-M模型程序 [推广有奖]

  • 0关注
  • 0粉丝

高中生

80%

还不是VIP/贵宾

-

威望
0
论坛币
658 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
317 点
帖子
20
精华
0
在线时间
54 小时
注册时间
2012-6-29
最后登录
2022-4-19

50论坛币
我用rats做bivariate GARCH-in-mean模型,之前没接触过rats, 问题比较琐碎, 有两个报错,有哪位大神帮忙解惑下,十分感谢下面是代码, 望指教,拜托拜托,毕业论文难产中。。。
open data "d:\dt.xls"
data(format=xls,org=columns) 1 4000 r illiq
dec symm[series] hhs(2,2)
clear(zeros) hhs
equation req r
# constant hhs(1,1) hhs(1,2)
equation illiqeq illiq
# constant hhs(2,1) hhs(2,2)
group garchm req illiqeq
garch(model=garchm,p=1,q=1,pmethod=simplex,piters=10,$
mvhseries=hhs)
## OP3. This Instruction Does Not Have An Option ZER
>>>>clear(zeros)<<<<
这个完全不懂,甚至不知道clear(zeros) hhs这句话是什么意思,是把hhs都赋值为0么?应该怎么改呢?

## SR10. Missing Values And/Or SMPL Options Leave No Usable Data Points  我把clear(zeros) hhs写作clear hhs后上面的报错没有了,但又出现了这个,是说有缺失值么?但数据应该没有问题


dt.xls (211 KB) 这个是我的数据

关键词:garch-m 多元GARCH GARCH Rats ARCH 程序 garch-m 二元 rats
沙发
bottlechang 发表于 2014-3-2 15:03:30 |只看作者 |坛友微信交流群
自顶!
我的程序是按照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)

使用道具

藤椅
bottlechang 发表于 2014-3-2 22:34:45 |只看作者 |坛友微信交流群
继续顶起~

各位老师以及大神们帮个忙啦

使用道具

板凳
bottlechang 发表于 2014-3-7 11:09:51 |只看作者 |坛友微信交流群
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

使用道具

报纸
bottlechang 发表于 2014-3-23 16:58:32 |只看作者 |坛友微信交流群
寻高手~~~~~

使用道具

地板
overwhelm11 发表于 2014-3-26 15:30:35 |只看作者 |坛友微信交流群
我也想知道

使用道具

7
楚少伯 学生认证  发表于 2018-4-13 14:04:55 |只看作者 |坛友微信交流群
bottlechang 发表于 2014-3-23 16:58
寻高手~~~~~
楼主最后做出来吗?

使用道具

8
楚少伯 学生认证  发表于 2018-4-13 14:04:58 |只看作者 |坛友微信交流群
bottlechang 发表于 2014-3-23 16:58
寻高手~~~~~
楼主最后做出来吗?

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-9-19 22:05