runif              package:compositions              R Documentation

_T_h_e _u_n_i_f_o_r_m _d_i_s_t_r_i_b_u_t_i_o_n _o_n _t_h_e _s_i_m_p_l_e_x

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

     Generates random compositions with a uniform distribution on the
     (rcomp) simplex.

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

     runif.acomp(n,D)
     runif.rcomp(n,D)
               

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

       n: number of datasets to be simulated

       D: number of parts

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

     a generated random dataset of class '"acomp"' or '"rcomp"' with
     drawn from a uniform distribution on the simplex of D parts.

_N_o_t_e:

     The only difference between both routines is the type of the
     returned dataset.

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

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

     'rDirichlet.acomp'

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

     plot(runif.acomp(10,3))
     plot(runif.rcomp(10,3))

