rDirichlet           package:compositions           R Documentation

_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:

     The Dirichlet distribution on the simplex.

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

     rDirichlet.acomp(n,alpha)
     rDirichlet.rcomp(n,alpha)

               

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

       n: number of datasets to be simulated

   alpha: parameters of the Dirichlet distribution

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

     The Dirichlet distribution is the result of closing a vector of
     equally-scaled Gamma-distributed variables. It the conjugate prior
     distribution for a vector of probabilities of a multinomial
     distribution. Thus, it generalizes the beta  distribution for more
     than two parts.

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

     a generated random dataset of class '"acomp"' or '"rcomp"', drawn
     from a Dirichlet distribution with the given parameter 'alpha'.
     The names of 'alpha' are used to name the parts.

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

     K.Gerald v.d. Boogaart <URL: http://www.stat.boogaart.de>, Raimon
     Tolosana-Delgado

_R_e_f_e_r_e_n_c_e_s:

     Aitchison, J. (1986) _The Statistical Analysis of Compositional
     Data_ Monographs on Statistics and Applied Probability. Chapman &
     Hall Ltd., London (UK). 416p.

     Mateu-Figueras, G.; Pawlowsky-Glahn, V. (2005). The Dirichlet
     distribution  with respect to the Aitchison measure on the
     simplex, a first approach. In: Mateu-Figueras, G. and
     Barcel\'o-Vidal, C. (Eds.) _Proceedings of the 2nd International
     Workshop on Compositional Data Analysis_, Universitat de Girona,
     {ISBN} 84-8458-222-1, <URL:
     http://ima.udg.es/Activitats/CoDaWork05>

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

     'rnorm.acomp'

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

     tmp <- rDirichlet.acomp(10,alpha=c(A=2,B=0.2,C=0.2))
     plot(tmp)

