fport_gof | R Documentation |
It computes three different goodness-of-fit tests for functional time series. All goodness-of-fit tests in this package are accessible through this function.
fport_gof(
f_data,
test = "far",
H = 10,
M = NULL,
pplot = FALSE,
residual = FALSE
)
f_data |
A |
test |
A string specifying the goodness-of-fit test. Currently available tests are referred to by their string handles: "far", "arch" and "garch". Please see the Details section of the documentation. |
H |
A positive integer specifying the maximum lag for which test statistics are computed. |
M |
A positive integer specifying the number of Monte Carlo simulations used to approximate the null distribution in the "far" test, and the number of basis functions used in the "arch" and "garch" tests.
If |
pplot |
A Boolean value. If TRUE, the function will produce a plot of p-values of the test
as a function of maximum lag |
residual |
A data frame. If TRUE, the function will provide the residuals obtained from fitting the FAR(1) model. |
This function conducts goodness-of-fit tests for functional time series data, providing several testing options:
1. When test = "far", it tests the goodness-of-fit of the FAR(1) model.
The function fits the FAR(1) model to the input data and then applies the test statistic KRS_{N,H}
, as described in fport_wn
, to the residuals.
The null distribution of the test statistic accounts for the dependence structure present in the residuals.
The optional parameters for this test are 'fdata', 'test', 'H', 'M', 'pplot' and 'residual'.
2. When test = "arch" or "garch", it tests the goodness-of-fit of the fARCH(1) or fGARCH(1,1) models.
It fits the model to the input data and applies the test M_{N,H}
in fport_wn
to the model residuals.
The asymptotic distribution is adjusted to account for the estimation effect,
because the model residual depends on the joint asymptotics of the innovation process and
the estimated parameters. We assume that the kernel parameters are consistently estimated
by the Least Squares method proposed in Aue et al. (2017).
Then, the asymptotic distribution of the statistic M_{N,H}
is given in Theorem 3.1
in Rice et al. (2020).
The optional parameters for this test are 'fdata', 'test', 'H', 'M', and 'pplot'.
A summary is printed with a brief explanation of the test and the p-value.
[1] Kim, M., Kokoszka, P., & Rice, G. (2023). White noise testing for functional time series. Statistic Surveys, 17, 119-168.
[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>.
[3] Rice, G., Wirjanto, T., Zhao, Y. (2020). Tests for conditional heteroscedasticity of functional data. Journal of Time Series Analysis. 41(6), 733-758. <doi:10.1111/jtsa.12532>.
data(Spanish_elec)
fport_gof(Spanish_elec, test = "far", H = 20, pplot=TRUE)
data(sp500)
fport_gof(OCIDR(sp500), test = "arch", M = 1, H = 5)
fport_gof(OCIDR(sp500), test = "garch", M = 1, H = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.