corgram                package:growth                R Documentation

_C_a_l_c_u_l_a_t_e _a_n_d _P_l_o_t _a _C_o_r_r_e_l_o_g_r_a_m

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

     'corgram' calculates the values of a correlogram (autocorrelation
     function or ACF) and plots it.

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

     corgram(y, wt=1, maxlag=NULL, partial=FALSE, add=FALSE, lty=1, xlim=NULL,
             ylim=NULL, xlab=NULL, ylab=NULL, main=NULL, ...)

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

       y: A time series vector.

  maxlag: Maximum number of lags for which the correlation is to be
          calculated.

 partial: If TRUE, the partial autocorrelation function (PACF) is
          plotted.

      wt: Indicator vector with zeros for values to be ignored.

     add: If TRUE, adds a new correlogram to an existing plot.

  others: Plotting parameters

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

     'corgram' returns a two-column matrix containing the (partial)
     correlogram coordinates.

_A_u_t_h_o_r(_s):

     J.K. Lindsey

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

     y <- rnorm(100)
     corgram(y)
     corgram(y, partial=TRUE)

