decompose                 package:ts                 R Documentation

_C_l_a_s_s_i_c_a_l _S_e_a_s_o_n_a_l _D_e_c_o_m_p_o_s_i_t_i_o_n _b_y _M_o_v_i_n_g _A_v_e_r_a_g_e_s

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

     Decompose a time series into seasonal, trend and irregular
     components using moving averages.  Deals with additive or
     multiplicative seasonal component.

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

     decompose(x, type = c("additive", "multiplicative"))

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

       x: A time series.

    type: The type of seasonal component.

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

     The additive model used is:

     Y[t] = T[t] + S[t] + e[t]

     The multiplicative model used is:

     Y[t] = T[t] * S[t] + e[t]

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

     An object of class `"decomposed.ts"' with following components: 

seasonal: The seasonal component (i.e., the repeated seasonal figure)

  figure: The estimated seasonal figure only

   trend: The trend component

  random: The remainder part

    type: The value of `type'

_N_o_t_e:

     The function `stl' provides a much more sophisticated
     decomposition.

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

     David Meyer david.meyer@ci.tuwien.ac.at

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

     `stl'

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

     data(co2)
     m <- decompose(co2)
     m$figure
     plot(m)

