rdirichlet             package:mixstock             R Documentation

_D_i_r_i_c_h_l_e_t _d_e_v_i_a_t_e_s

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

     Produces random deviates for the Dirichlet distribution, the
     multivariate analogue of the beta distribution.

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

     rdirichlet(n, alpha)

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

       n: Number of random deviates to generate.

   alpha: Vector of shape parameters.

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

     The Dirichlet distribution is a multivariate distribution that
     describes distributions of frequencies.  If a multinomial sample
     n_1, ... n_N is taken from a population, the estimated
     distribution of  frequencies is Dirichlet(n_1+1, ... n_2+N).  If
     {g_i} is a set of Gamma deviates with shape parameters {alpha_i},
     then {g_i}/sum({g_i}) is a Dirichlet deviate.

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

     A matrix of random deviates (each in a distinct row) from
     'rdirichlet'

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

     Ben Bolker

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

       rdirichlet(5,c(7,4,4))
      

