全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
1387 1
2011-10-14
启动FinMetrics模块之后,输入如下命令

*原来有序列chex和o1,创建时间序列 positions 属性,创建时间序列rchex和ro1
td = timeCalendar(y=2001:2120,format="%Y")  
rchex=timeSeries(data=chex,pos=td)   
ro1=timeSeries(data=o1,pos=td)

再估计方程rche=C+A*rchex(-1)+B*ro1
art = garch(rchex~ma(1)+seriesData(ro1), ~garch(1,1),trace=F)
就出现了如下的问题:
Problem in garch(rchex ~ ma(1) + seriesData(ro1),  ..: Length of seriesData(ro1) (variable 1) is 1 != length of others (120)
即使是改成
art = garch(rchex~ma(1)+ro1, ~garch(1,1),trace=F)
Problem in garch(rchex ~ ma(1) + ro1,  ~ garch(1, 1..: Length of ro1 (variable 1) is 11 != length of others (120)
chex和o1都是120x1的单列的数据,格式data.frame。经过创建时间序列之后rchex和ro1都是timeSeries。为什么模拟之后就出现了那样的问题了?
我觉得可能是本人定义时间序列上有问题,本人觉得小弟贴上数据,希望能有大大代为解答下,呵呵,先行谢过。
chex和o1数据.rar
大小:(2.06 KB)

 马上下载

本附件包括:

  • o1.sdd
  • chex.sdd


二维码

扫码加我 拉你入群

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

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

全部回复
2014-12-16 12:47:03
方便的话,可以把数据转成csv或者excel放上来看下
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群