powered by
Computes empirical autocovariances and autocorrelations function for an ARMA process for lag max given.
acf.gamma_m(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.
Computes autocovariances and autocorrelations from lag 1 to lag h with h an integer.
Vector of residuals. If NULL, the function will compute it.
A list with :
gamma_m
Vector of the autocovariances.
rho_m
Vector of the autocorrelations.
acf.univ for autocorrelation and autocovariance for only one given lag h.
acf.univ
# NOT RUN { param.estim <- estimation(p = 1, q = 1, y = CAC40return.sq) # } # NOT RUN { acf.gamma_m(ar = param.estim$ar, ma = param.estim$ma, y = CAC40return.sq, h = 20) # } # NOT RUN { # }
Run the code above in your browser using DataLab