如何使用R中的rmgarch包获取多变量DCC garch的VAR输出

问题描述 投票:1回答:1

我正在使用rmgarch包来估计带有外部回归变量的多元GARCH模型。

在规范中,我包括为条件均值拟合VAR模型的选项,因为我也对此结果感兴趣。

虽然似乎无法找到估算后给出我VAR系数的命令。现在,输出仅提供GARCH系数。是否可以提取?

下面的代码,如果这对您有帮助的话。谢谢!

spec1 <- ugarchspec(variance.model = list(model = "eGARCH", garchOrder = c(1, 1),
                    external.regressors = VAREXO),
                    mean.model = list(armaOrder = c(1, 1), include.mean = TRUE,
                    external.regressors = VAREXO),
                    distribution.model = "norm")

spec2 <- ugarchspec(variance.model = list(model = "eGARCH", garchOrder = c(1, 1),
                    external.regressors = VAREXO),
                    mean.model = list(armaOrder = c(1, 1), include.mean = TRUE,
                    external.regressors = VAREXO),
                    distribution.model = "norm")

spec3 <- ugarchspec(variance.model = list(model = "eGARCH", garchOrder = c(1, 1),
                    external.regressors = VAREXO),
                    mean.model = list(armaOrder = c(1, 1), include.mean = TRUE,
                    external.regressors = VAREXO),
                    distribution.model = "norm")

speclist <- list(spec1, spec2, spec3)
mspec <- multispec(speclist)

spec4 <- dccspec(mspec, VAR = TRUE, lag = 1, lag.criterion = c("AIC", "HQ", "SC", "FPE"), 
                 external.regressors = VAREXO,
                 dccOrder = c(1,1), model = "DCC", distribution = "mvnorm")

fit <- dccfit(spec4, VARENDO, fit.control = list(eval.se = TRUE, stationarity = TRUE)
r var
1个回答
0
投票

您应该尝试fit @ model [[“ varcoef”]]

© www.soinside.com 2019 - 2024. All rights reserved.