acf.univ | R Documentation |
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)
ar |
Vector of AR coefficients. If |
ma |
Vector of MA coefficients. If |
y |
Univariate time series. |
h |
Given lag to compute autocovariance and autocorrelation, with h an integer. |
e |
Vector of residuals of the time series. If |
A list with :
autocov
Value of the autocovariance.
autocor
Value of the autocorrelation.
acf.gamma_m
for autocorrelation and autocovariance for all h lag.
param.estim <- estimation(p = 1, q = 1, y = CAC40return.sq) acf.univ(ar = param.estim$ar, ma = param.estim$ma, y = CAC40return.sq, h = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.