ARMAacf                package:stats                R Documentation

_C_o_m_p_u_t_e _T_h_e_o_r_e_t_i_c_a_l _A_C_F _f_o_r _a_n _A_R_M_A _P_r_o_c_e_s_s

_D_e_s_c_r_i_p_t_i_o_n:

     Compute the theoretical autocorrelation function or partial
     autocorrelation function for an ARMA process.

_U_s_a_g_e:

     ARMAacf(ar = numeric(0), ma = numeric(0), lag.max = r, pacf = FALSE)

_A_r_g_u_m_e_n_t_s:

      ar: numeric vector of AR coefficients

      ma: numeric vector of MA coefficients

 lag.max: integer.  Maximum lag required.  Defaults to 'max(p, q+1)',
          where 'p, q' are the numbers of AR and MA terms respectively.

    pacf: logical.  Should the partial autocorrelations be returned?

_D_e_t_a_i_l_s:

     The methods used follow Brockwell & Davis (1991, section 3.3). 
     Their equations (3.3.8) are solved for the autocovariances at lags
     0, ..., max(p, q+1), and the remaining autocorrelations are given
     by a recursive filter.

_V_a_l_u_e:

     A vector of (partial) autocorrelations, named by the lags.

_R_e_f_e_r_e_n_c_e_s:

     Brockwell, P. J. and Davis, R. A. (1991) _Time Series: Theory and
     Methods_, Second Edition.  Springer.

_S_e_e _A_l_s_o:

     'arima', 'ARMAtoMA', 'acf2AR' for inverting part of 'ARMAacf';
     further 'filter'.

_E_x_a_m_p_l_e_s:

     ARMAacf(c(1.0, -0.25), 1.0, lag.max = 10)

     ## Example from Brockwell & Davis (1991, pp.92-4)
     ## answer 2^(-n) * (32/3 + 8 * n) /(32/3)
     n <- 1:10; 2^(-n) * (32/3 + 8 * n) /(32/3)
     ARMAacf(c(1.0, -0.25), 1.0, lag.max = 10, pacf = TRUE)
     ARMAacf(c(1.0, -0.25), lag.max = 10, pacf = TRUE)

     ## Cov-Matrix of length-7 sub-sample of AR(1) example:
     toeplitz(ARMAacf(0.8, lag.max = 7))

