简体   繁体   English

DCC Garch model in R 真的很长

[英]DCC Garch model in R goes really long

I want to estimate DCC GARCH model in R. I have data which contains 340 observation and 10 variables.我想估计 R 中的 DCC GARCH model。我有包含 340 个观察值和 10 个变量的数据。 Those are the logarythimc return rates of my data:这些是我的数据的对数回归率:

[enter image description here][1] [在此处输入图片描述][1]

# univariate normal GARCH(1,1) for each series
garch11.spec = ugarchspec(mean.model = list(armaOrder = c(0,0)), 
                          variance.model = list(garchOrder = c(1,1), 
                                                model = "sGARCH"), 
                          distribution.model = "norm")

# dcc specification - GARCH(1,1) for conditional correlations
dcc.garch11.spec = dccspec(uspec = multispec( replicate(10, garch11.spec) ), 
                           dccOrder = c(1,1), 
                           distribution = "mvnorm")
dcc.garch11.spec


dcc.fit = dccfit(dcc.garch11.spec, data = data)

When I make my code starts, it goes more than few days and doesnt finish.当我启动我的代码时,它持续了好几天而且没有完成。 What can I improve or change to get the finished code faster?我可以改进或更改什么以更快地获得完成的代码?

Faced the same problem)) This is clearly not a problem with the data and the complexity of the model. In my case, two things were done: 1) updating all packages;面临同样的问题))这显然不是数据和 model 的复杂性的问题。在我的例子中,做了两件事:1)更新所有包; 2) system reboot. 2)系统重启。 After that, everything worked in a couple of seconds.之后,几秒钟内一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM