我试图找到如何在 R 中进行模拟(即在平均模型中生成 ARIMA,在方差模型中生成 GARCh)。
我尝试在线搜索,但我只找到了如何使用这样的模型
spec <- ugarchspec( variance.model = list(
model = "sGARCH",
garchOrder = c(1, 1),
submodel = NULL,
external.regressors = NULL,
variance.targeting = FALSE),
mean.model = list( armaOrder = c(1, 1),
include.mean = TRUE,
archm = FALSE,
archpow = 1,
arfima = FALSE,
external.regressors = NULL,
archex = FALSE),
distribution.model = "norm",
start.pars = list(),
fixed.pars = list()
)
然后我写
garch <- ugarchfit(spec = spec, data = data, solver.control = list(trace=0))
这显然是合适的,而不是模拟即生成随机变量。