Description Usage Arguments Details Value Author(s) See Also Examples

This GUI makes GARCH estimation of comparison easy. With a pre-selected GARCH type, it automatically fits eight probability distributions and conducts all diagnostic tests with a Click.

1 | ```
iClick.GARCH(dat, meanEQ = meanEQ, garchEQ = garchEQ, n.ahead = 15)
``` |

`dat` |
dat has two forms:(1) It may be a 2-column data frame, with the 1-st column as the date string, and the 2nd column is the numeric return series. (2) It can also be created by a ts() object as a none daily time series. However, the ts object may not be suitable for some financial time series returns plot, for example, drawdown. |

`meanEQ` |
Specification of mean equation. |

`garchEQ` |
Specification of variance equation. |

`n.ahead` |
Number of out-of-sample forecasting period. |

This GUI fits 8 distributions for univariate GARCH with pre-selected GARCH types, and returns a 54-button GUI output. The outputs can be individually saved as .RData file for later use, the last row is the save button.The saved filename is automatically generated once clicked, in addition, corresponding .csv files will be generated also.

The 54-button GUI is divided into 9 panes, and the last pane collects coefficient outputs and diagnostic tests together, which aims to make estimation comparison easy.

Fitted GARCH regression output.

Ho Tsung-wu <[email protected]>

library(rugarch)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ```
##==External data
#data("returnsDaily24")
#y=returnsDaily24[,c(1,5)]
##== Simulation data
dat=rnorm(100,0.5,1)
y=ts(dat, start = c(1970, 1), frequency = 12)
meanEQ=list(AR=1,MA=0,Exo=NULL, autoFitArma=FALSE,arfimaDiff=FALSE,archM=FALSE)
# If there are external regressors X, put them as Exo=X
# autoFitArma=TRUE, If you want to fit arma automatically.
# arfimaDiff=TRUE,to take ARFIMA difference
# archM=TRUE, to estimate GARCH-in-mean
garchEQ=list(Type="sGARCH",P=1,Q=1, exo=NULL)
# Type: "sGARCH","eGARCH","gjrGARCH","iGARCH","apGARCH"
# please check rugarch for details.
# P is the ARCH order
# Q is the GARCH order
iClick.GARCH(y,meanEQ, garchEQ, n.ahead=10)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.