cpgram                 package:stats                 R Documentation

_P_l_o_t _C_u_m_u_l_a_t_i_v_e _P_e_r_i_o_d_o_g_r_a_m

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

     Plots a cumulative periodogram.

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

     cpgram(ts, taper = 0.1,
            main = paste("Series: ", deparse(substitute(ts))),
            ci.col = "blue")

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

      ts: a univariate time series

   taper: proportion tapered in forming the periodogram

    main: main title

  ci.col: colour for confidence band.

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

     None.

_S_i_d_e _E_f_f_e_c_t_s:

     Plots the cumulative periodogram in a square plot.

_N_o_t_e:

     From package 'MASS'.

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

     B.D. Ripley

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

     par(pty = "s", mfrow = c(1,2))
     cpgram(lh)
     lh.ar <- ar(lh, order.max = 9)
     cpgram(lh.ar$resid, main = "AR(3) fit to lh")

     cpgram(ldeaths)

