initsFS               package:bayesmix               R Documentation

_c_r_e_a_t_e _i_n_i_t_i_a_l _v_a_l_u_e_s

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

     Initial values for nodes are created after the suggestion in
     Sylvia Fruehwirth-Schnatter's book.

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

     initsFS(x, k, restrict, initialValues = list())

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

       x: a numeric vector.

       k: number of segments.

initialValues: additional inital values specifications.

restrict: one of "none", "mu", "tau".

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

     The initial values for mu are determined by the quantiles of the
     data, those for eta give equal weight on each segment and those
     for tau are equal for all segments and estimated by the inverse of
     the IQR of the data devided by 1.34 and squared.

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

     A list with initial values for the parameter indicated by the name
     of the respective list element is returned.

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

     Bettina Gruen

