Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

slm (version 1.2.0)

cov_efromovich: 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, plot = FALSE. If plot = TRUE, the ACF of the process epsilon is plotted.

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

Run this code
# NOT RUN {
x = arima.sim(list(ar=c(0.4,0.2)),1000)
cov_efromovich(x)
# }

Run the code above in your browser using DataLab