ldmult               package:mixtools               R Documentation

_L_o_g-_D_e_n_s_i_t_y _f_o_r _M_u_l_t_i_n_o_m_i_a_l _D_i_s_t_r_i_b_u_t_i_o_n

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

     Return the logarithm of the multinomial density function.

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

     ldmult(y, theta)

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

       y: A vector of multinomial counts.

   theta: A vector of multinomial probabilities.  May have same number
          of components as or one fewer component than 'y'.  In the
          latter case,  an extra component is appended so that theta
          sums to one.

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

     This function is called by 'multmixEM'.

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

     'ldmult' returns the logarithm of the multinomial density with
     parameter 'theta', evaluated at 'y'.

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

     'multmixEM'

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

     y<-c(2, 2, 10)
     theta<-c(.2, .3, .5)
     ldmult(y, theta)

