Sort                package:bayesmix                R Documentation

_S_o_r_t_s _M_C_M_C _c_h_a_i_n_s _a_c_c_o_r_d_i_n_g _t_o _c_e_r_t_a_i_n _v_a_r_i_a_b_l_e_s

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

     Ascending sorting of results of 'jags' object with model of class
     'BMMmodel' with respect to a given variable.

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

     Sort(x, by = NULL)

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

       x: a 'jags' object with model of class 'BMMmodel'.

      by: variable name according to which the segments shall be
          ordered.

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

     If 'by' is not specified, the first variable in the corresponding
     vector of the 'jags' object is taken.

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

     The input object with results sorted in ascending order according
     to the variable given in 'by' is returned.

_W_a_r_n_i_n_g:

     If there arise problems, the original object is returned with a
     warning.

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

     Bettina Gruen

