

movbox(timeslab)                             R Documentation

_F_o_r_m _Q_u_a_n_t_i_t_i_e_s _N_e_e_d_e_d _f_o_r _M_o_v_i_n_g _B_o_x _P_l_o_t

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

     Form Quantities Needed for Moving Box Plot

_U_s_a_g_e_:

     movbox(x,k)

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

       x: Array of length $n$ containing the data.

       k: Integer indicating the length of the moving aver-
          age smoother.

_V_a_l_u_e_:

  movbox: returns a list containing the following three
          objects:

    summ: Matrix ($nimes 5$) with columns defined as fol-
          lows:

        : Column 1 is largest value in $[u4, u4 + 1.5*IQR]$,
          or $u4$ if none,

        : Column 2 is the upper fourth (median of largest
          ({`n'}+1)/2),

        : Column 3 is the median,

        : Column 4 is lower fourth (median of smallest
          ({`n'}+1)/2),

        : Column 5 is smallest value in $[l4, l4 -
          1,5*IQR]$, or $l4$ if none,

        : where $IQR$ is the interquartile range.

    inds: Integer array of indices.

    outs: Real array containing values corresponding to
          {`inds'} that fall outside $[l4 - 1.5*IQR, u4 +
          1.5*IQR]$.

