cov_efromovich {slm} | R Documentation |
Spectral density estimation: Efromovich method
Description
This method estimates the spectral density and the autocovariances of the error process via a lag-window estimator based on the rectangular kernel (see P.J. Brockwell and R.A. Davis (1991). Time Series: Theory and Methods. Springer Science & Business Media, page 330). The lag is computed according to Efromovich's algorithm (Efromovich (1998)).
Usage
cov_efromovich(epsilon, plot = FALSE)
Arguments
epsilon |
numeric vector. An univariate process. |
plot |
logical. By default, |
Value
The function returns the estimated autocovariances of the process, that is the Fourier coefficients of the spectral density estimates, and the order chosen by the algorithm.
model_selec |
the number of selected autocovariance terms. |
cov_st |
the estimated autocovariances. |
References
P.J. Brockwell and R.A. Davis (1991). Time Series: Theory and Methods. Springer Science & Business Media.
E. Caron, J. Dedecker and B. Michel (2019). Linear regression with stationary errors: the R package slm. arXiv preprint arXiv:1906.06583. https://arxiv.org/abs/1906.06583.
S. Efromovich (1998). Data-driven efficient estimation of the spectral density. Journal of the American Statistical Association, 93(442), 762-769.
Examples
x = arima.sim(list(ar=c(0.4,0.2)),1000)
cov_efromovich(x)