armagarchf | R Documentation |
ARMA(1, 1)-GARCH(1, 1) forecasting (with simulation)
armagarchf(
y,
h = 5,
level = 95,
B = 250,
cl = 1L,
dist = c("student", "gaussian"),
seed = 123
)
y |
a univariate time series |
h |
number of periods for forecasting |
level |
confidence level for prediction intervals |
B |
number of simulations for |
cl |
an integer; the number of clusters for parallel execution |
dist |
distribution of innovations ("student" or "gaussian") |
seed |
reproducibility seed |
An object of class "forecast"; a list containing the following elements:
model |
A list containing information about the fitted model |
method |
The name of the forecasting method as a character string |
mean |
Point forecasts for the time series |
lower |
Lower bound for prediction interval |
upper |
Upper bound for prediction interval |
x |
The original time series |
sims |
Simulations of ARMA(1, 1)-GARCH(1, 1) |
T. Moudiki
y <- datasets::EuStockMarkets[ , "DAX"]
log_returns <- ts(log(y[-1]/y[-length(y)]))
# require(forecast)
# z <- ahead::armagarchf(y=log_returns, h=200)
# plot(z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.