楼主: 人大潜龙
1820 2

[Splus与R金融时间序列专题] 第九课 协整向量检验案例分析的问题 [推广有奖]

  • 0关注
  • 0粉丝

VIP

本科生

6%

还不是VIP/贵宾

-

威望
0
论坛币
2545 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
730 点
帖子
71
精华
0
在线时间
33 小时
注册时间
2008-12-23
最后登录
2015-9-18

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
方老师:
        在“协整向量检验案例分析的问题”一课中,我想到一个问题,请帮忙解答,谢谢。
原程序:

  uscn.f = lexrates.dat[,"USCNF"]##提取远期汇率
uscn.s = lexrates.dat[,"USCNS"]##提取近期汇率
uscn.ts=seriesMerge(uscn.s,uscn.f)

# determine lag length using AIC
var.fit = VAR(uscn.ts,max.ar=6,criterion="AIC")#构建VARP模型,最大 的阶是6阶,
var.fit$ar.order#提取最合适的阶是2,那么,VECM模型最大的阶是1.
coint.rc = coint(uscn.ts,trend="rc",lags=1)#提取最合适的阶是2,那么,VECM模型最大的阶是1.
#也就是lags=1,trend="rc,表示是用约束常数项的模型,即第二种模型
结果:
-----------------------------------------------------------------------------------------
> summary(coint.rc)
Call:
coint(Y = uscn.ts, lags = 1, trend = "rc")
Trend Specification:
H1*(r): Restricted constant
Trace tests significant at the 5% level are flagged by ' +'.
Trace tests significant at the 1% level are flagged by '++'.
Max Eigenvalue tests significant at the 5% level are flagged by ' *'.
Max Eigenvalue tests significant at the 1% level are flagged by '**'.
Tests for Cointegration Rank:
         Eigenvalue Trace Stat  95% CV  99% CV Max Stat  95% CV  99% CV
H(0)++**  0.0970    32.4687    19.9600 24.6000 24.8012  15.6700 20.2000
H(1)      0.0311     7.6675     9.2400 12.9700  7.6675   9.2400 12.9700

---------------------------------------------------------------------------------------------
据此,我们判断uscn和uscf存在协整关系。

如果我们用:

##########
coint.nc = coint(uscn.ts,trend="nc",lags=1)
summary(coint.nc)
##
----------------------------------------------------------------------------------------
> summary(coint.nc)
Call:
coint(Y = uscn.ts, lags = 1, trend = "nc")
Trend Specification:
H2(r): No constant or trend
Trace tests significant at the 5% level are flagged by ' +'.
Trace tests significant at the 1% level are flagged by '++'.
Max Eigenvalue tests significant at the 5% level are flagged by ' *'.
Max Eigenvalue tests significant at the 1% level are flagged by '**'.
Tests for Cointegration Rank:
         Eigenvalue Trace Stat  95% CV  99% CV Max Stat  95% CV  99% CV
H(0)++**  0.0680    17.6212    12.5300 16.3100 17.1061  11.4400 15.6900
H(1)      0.0021     0.5150     3.8400  6.5100  0.5150   3.8400  6.5100
Unnormalized Cointegrating Vectors:
也说明存在协整关系
----------------------------------------------------------------------------------------
问题:用nc模型检验也通过,用rc模型也通过。为什么不选nc模型而用rc模型呢?以后碰到类似的问题应该怎么选、选哪个模型做VECM呢?
二维码

扫码加我 拉你入群

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

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

关键词:案例分析 significant Integration Integrating eigenvalue 检验 向量

沙发
ruiqwy 发表于 2010-1-12 15:27:32 |只看作者 |坛友微信交流群
您好,VECM的几种模型的选择确实是个麻烦问题,一般也很少有教材详细阐述怎么选择。我个人认为一般还是要根据数据的图形走势(请看P458的图12.6 和12.7)、经济含义、和一些经验来综合选定模型。
R is the second language for me!Using R is standing on the shoulders of giants!   Let\'s use R together!

使用道具

藤椅
人大潜龙 发表于 2010-1-13 09:38:17 |只看作者 |坛友微信交流群
谢谢方老师。正在继续努力学习中。。。。。。

使用道具

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

本版微信群
加好友,备注jltj
拉您入交流群

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

GMT+8, 2024-5-1 12:49