楼主: chenliya_110
4504 4

[问答] 关于广义混合检验(GARCH) [推广有奖]

  • 0关注
  • 0粉丝

初中生

38%

还不是VIP/贵宾

-

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

楼主
chenliya_110 学生认证  发表于 2013-4-19 05:07:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
    在检验GARCH(1,2)模型的时候,想用广义混合检验。    也就是R程序中的gBox()函数,检验标准残差。
    R帮助如下:

Generalized Portmanteau Tests for GARCH ModelsDescriptionPerform a goodness-of-fit test for the GARCH model by checking whether the standardized residuals are iid based on the ACF of the absolute residuals or squared residuals.
UsagegBox(model, lags = 1:20, x, method = c("squared", "absolute")[1], plot = TRUE)Arguments
modelfitted model from the garch function of the tseries library
lagsa vector of maximum ACF lags to be used in the test
xtime series data to which the GARCH model is fitted
method"squared": test is based on squared residuals; "absolute": test is based on absolute residuals
plotlogical variable, if TRUE, the p-values of the tests are plotted
Value
lagslags in the input
pvaluea vector of p-values of the tests
methodmethod used
xx
Author(s)Kung-Sik Chan
References"Time Series Analysis, with Applications in R" by J.D. Cryer and K.S. Chan
Exampleslibrary(tseries)data(CREF)r.cref=diff(log(CREF))*100m1=garch(x=r.cref,order=c(1,1))summary(m1)#gBox(m1,x=r.cref,method='squared')############################################

我的这段程序如下gBox(g09,x=DEC09_R1,method='squared')但是运行过后老是出错如:“错误于filter(M, filter = beta, method = "recursive", sides = 1, init = rep(sigma2,:dims [product 2]与对象长度[1]不匹配”查看residuals(g09)残差序列时,发现前几个值是NA,于是我用例子里面的garch(1,1)模型又做了一遍,还是这样,这个和空值有关么???为什么会有这样的错误提示啊??求解!!!
如果不用广义混合检验,只用ACF行不行丫?总感觉不完善……
还有模型拟合以后,在之后20多阶的时候出现一个相关性是不是能说明有异常值的存在?




二维码

扫码加我 拉你入群

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

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

关键词:GARCH ARCH RCH ARC Standardized 检验 混合 function absolute library

https://bbs.pinggu.org/cc.php?p=1&u=3221020

沙发
chenliya_110 学生认证  发表于 2013-4-21 23:12:32
- - 没人顶么、自己支持一下、
https://bbs.pinggu.org/cc.php?p=1&u=3221020

藤椅
daisong 发表于 2013-6-24 09:36:20
用rugarch拟合之后后面不是还有一大段各种对残差的检验吗?

板凳
trier2006 发表于 2013-6-25 08:09:59
不懂
最好的医生是自己,最好的药物是时间……

报纸
尒lóng☆笣 发表于 2014-10-30 11:18:22
我也遇到了同样的问题,求教楼主怎么解决啊?

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

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