Description Usage Arguments Value References Examples
View source: R/intraday_return.R
basis.est function generates/estimates non-negative basis functions, so that they can be used to estimate a Functional GARCH model subsequently.
1 |
yd |
A (grid_point) x (number of observations) matrix drawn from N discrete evaluation curves. |
M |
The number/order of basis functions, by setting M <= 10. |
type |
A string to switch estimation method: "poly" - exponential and Bernstein functions; "tfpca" - truncated functional principal components; "fsnn" - sparse and non-negative functional principal components; "tpf" - truncated predictive factors. |
List of objects:
basis: a (grid_point) x (M) matrix containing discrete evaluations of M data-driven bases; when "poly" is applied, the basis contains a list with 'exp' for exponential and 'bern' for Bernstein.
tve: the total variations explained by data-driven bases, not applied for polynomials.
Cerovecki, C., Francq, C., Hormann, S., Zakoian, J. M. (2019). Functional GARCH models: The quasi-likelihood approach and its applications. Journal of Econometrics. 209(2), 353-375. <doi:10.1016/j.jeconom.2019.01.006>.
Rice, G., Wirjanto, T., Zhao, Y. (2021) Exploring volatility of crude oil intra-day return curves: a functional GARCH-X model. MPRA Paper No. 109231. <https://mpra.ub.uni-muenchen.de/109231>.
1 2 3 4 5 6 7 8 | # generate discrete evaluations of the FGARCH process.
yd = dgp.fgarch(50, 100, "garch")
yd = yd$garch_mat
# decompose the first truncated non-negative functional principal component.
dt = basis.est(yd, M=1, "tfpca")
tbasis = dt$basis
tve = dt$tve
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.