BMMpriors              package:bayesmix              R Documentation

_C_r_e_a_t_e_s _a '_B_M_M_p_r_i_o_r_s' _o_b_j_e_c_t

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

     This function enables a comfortable creation of 'BMMpriors'
     objects, which can be used for specifying the priors  of a
     'BMMmodel'.

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

     BMMpriors(specification, y)

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

specification: named list including 'kind', 'parameter', 'hierarchical'
          and 'mod'.

       y: a numeric vector.

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

     In 'specification' 'kind' can be used for specifying if an
     "independent" or a "conditionallyconjugate" prior shall be used.
     'parameter' can be a named list of values for the prior variables
     or a function name (e.g., "priorsUncertain", "priorsFish",
     "priorsRaftery"). 'hierarchical' can be 'NULL' or "tau" if a
     hierarchical prior shall be taken for tau. 'mod' is a named list
     which provides the possibility to override the values from
     'parameter'.

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

     There is an object 'BMMpriors' returned with components 

    name: vector indicating which kind of prior is specified and if it
          is an hierarchical prior and if appropriate with respect to
          which variable.

     var: list of variables in the prior and their specified values.

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

     Bettina Gruen

_E_x_a_m_p_l_e_s:

       data(fish)
       priors <- BMMpriors(y = fish)
       

