ddirichlet             package:MCMCpack             R Documentation

_E_v_a_l_u_a_t_e _D_e_n_s_i_t_y _o_f _D_i_r_i_c_h_l_e_t _D_i_s_t_r_i_b_u_t_i_o_n

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

     Functions to compute the density of the Dirichlet distribution.

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

       ddirichlet(x, alpha)

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

       x: A vector containing a single deviate or matrix containing one
          random deviate per row.

   alpha: Vector of shape parameters, or matrix of shape parameters
          corresponding to each row above. 

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

     The Dirichlet distribution is the multidimensional generalization
     of the beta distribution.

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

     'ddirichlet' returns a vector containing the evaluated Dirichlet
     density for the corresponding rows of 'x'.

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

     Code is taken from Greg's Miscellaneous Functions (gregmisc).  His
     code was based on code posted by Ben Bolker to R-News on Fri Dec
     15 2000.

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

     'Beta', 'rdirichlet'

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

       ddirichlet(c(.1,.2,.7), c(1,1,1))

