dgp.fgarch | R Documentation |
It generates functional curve data following the functional ARCH(1) or GARCH(1,1) process.
dgp.fgarch(J, N, type, alpha_par = NULL, beta_par = NULL)
J |
The number of grid point in each curve observation. |
N |
The sample size. |
type |
A string to switch data generating process between "arch" - functional ARCH and "garch" - functional GARCH. |
alpha_par |
The ARCH kernel coefficient function in the conditional volatility equation. If it is missing, " |
beta_par |
The GARCH kernel coefficient function in the conditional volatility equation. If it is missing, " |
If X_i(t)
follows an FARCH(1) process,
X_i(t)=\sigma_i(t)\varepsilon_i(t)
, t \in [0,1]
,
\sigma_i^2(t)=\omega(t)+\int \alpha(t,s) X^2_{i-1}(s)ds
.
If X_i(t)
follows an FGARCH(1,1) process,
X_i(t)=\sigma_i(t)\varepsilon_i(t)
, t \in [0,1]
,
\sigma_i^2(t)=\omega(t)+\int \alpha(t,s) X^2_{i-1}(s)ds+\int \beta(t,s) \sigma^2_{i-1}(s)ds
,
where the innovation \varepsilon_i(t)
follows an Ornstein–Uhlenbeck process dgp.ou
, and the constant coefficient \omega(t)=0.1t(1-t)
.
List of generated processes:
garch_mat: FARCH/GARCH sequences, where the finite realization of curves are stored in columns;
sigma_mat: Conditional volatility sequences, where the finite realization of curves are stored in columns.
[1] Hormann, S., Horvath, L., Reeder, R. (2013). A functional version of the ARCH model. Econometric Theory. 29(2), 267-288. <doi:10.1017/S0266466612000345>.
[2] Aue, A., Horvath, L., F. Pellatt, D. (2017). Functional generalized autoregressive conditional heteroskedasticity. Journal of Time Series Analysis. 38(1), 3-21. <doi:10.1111/jtsa.12192>.
dgp.ou
# Generate discrete evaluations of 100 fGARCH curves that
# each curve is realized on 50 grid points.
yd = dgp.fgarch(J = 50, N = 100, type = "garch")
yd_garch = yd$garch_mat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.