garch | R Documentation |
Computes annualised Garch(1,1) volatilities using fGarch package.
garch(x = x, out = TRUE)
x |
Wide dataframe with date column and single series (univariate). |
out |
"chart" to return |
replot_xts
chart, xts
data, or uGARCHfit
fit
Philippe Cote
## Not run:
x <- dflong %>% dplyr::filter(series == "CL01")
x <- returns(df = x, retType = "rel", period.return = 1, spread = TRUE)
x <- rolladjust(x = x, commodityname = c("cmewti"), rolltype = c("Last.Trade"))
summary(garch(x = x, out = "fit"))
garch(x = x, out = "chart")
garch(x = x, out = "data")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.