acf.univ {weakARMA} | R Documentation |
Computation of autocovariance and autocorrelation for an ARMA residuals.
Description
Computes empirical autocovariances and autocorrelations functions for an ARMA process for only one given lag.
Usage
acf.univ(ar = NULL, ma = NULL, y, h, e = NULL)
Arguments
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 |
Value
A list with :
autocov
Value of the autocovariance.
autocor
Value of the autocorrelation.
See Also
acf.gamma_m
for autocorrelation and autocovariance for all h lag.
Examples
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)
[Package weakARMA version 1.0.3 Index]