mysort                package:mvnmle                R Documentation

_S_o_r_t _a _m_u_l_t_i_v_a_r_i_a_t_e _d_a_t_a _m_a_t_r_i_x _a_c_c_o_r_d_i_n_g _t_o _p_a_t_t_e_r_n_s _o_f _m_i_s_s_i_n_g_n_e_s_s

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

     `mysort' sorts a multivariate data matrix so that records with
     identical patterns of missingness are adjacent to one another.
     `mysort' is a private function used inside of `mlest'.

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

     mysort(x)

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

       x: A multivariate data matrix.  Rows correspond to individual
          records and columns correspond to components of the
          multivariate vector.

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

sorted.data: A matrix of the same size as `x' but with the rows
          re-arranged so that records with identical patterns of
          missingness are adjacent to one another.

    freq: An integer vector giving the number of records in each block
          of rows with a unique pattern of missingness.  The first
          element in `freq' counts the number of rows in the top block
          of `sorted.data', and so on.

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

     `mlest'

