powered by
Computes empirical autocovariances and autocorrelations functions for an ARMA process for only one given lag.
acf.univ(ar = NULL, ma = NULL, y, h, e = NULL)
Vector of AR coefficients. If NULL, it is a MA process.
NULL
Vector of MA coefficients. If NULL, it is a AR process.
Univariate time series.
Given lag to compute autocovariance and autocorrelation, with h an integer.
Vector of residuals of the time series. If NULL, the function will compute it.
A list with :
autocov
Value of the autocovariance.
autocor
Value of the autocorrelation.
acf.gamma_m for autocorrelation and autocovariance for all h lag.
acf.gamma_m
# NOT RUN { param.estim <- estimation(p = 1, q = 1, y = CAC40return.sq) # } # NOT RUN { acf.univ(ar = param.estim$ar, ma = param.estim$ma, y = CAC40return.sq, h = 20) # } # NOT RUN { # }
Run the code above in your browser using DataLab