randomPermutation          package:bayesmix          R Documentation

_R_a_n_d_o_m_l_y _p_e_r_m_u_t_e _s_e_g_m_e_n_t_s _f_o_r _M_C_M_C _d_r_a_w_s

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

     Random permutation of segment labels for each draw in order to get
     a better estimate of the unrestricted likelihood.

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

     randomPermutation(x)

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

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

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

     The draws are permuted with respect to the different classes 'k'.

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

     The input object with permuted results for each draw is returned.

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

     Any variables where there are neither 'k' different chains nor
     only one chain observed are dropped.

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

     Bettina Gruen

