Cbeta                  package:UCS                  R Documentation

_T_h_e _B_e_t_a _F_u_n_c_t_i_o_n (_s_f_u_n_c)

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

     Computes the (complete) Beta function and its base 10 logarithm.

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

     Cbeta(a, b, log=FALSE)

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

    a, b: numeric vectors

     log: if 'TRUE', returns the base 10 logarithm of the Beta function
          (default: 'FALSE')

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

     This is just a front-end to the built-in 'beta' and 'lbeta'
     functions, provided mainly for consistent naming. Note that the
     logarithmic version is scaled to base 10 logarithms, according to
     the UCS conventions.

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

     The Beta function with arguments ('a', 'b'), or its base 10
     logarithm (if 'log=TRUE').

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

     'beta', 'Ibeta', 'Rbeta', 'Cgamma', 'Igamma', 'Rgamma'

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

     x <- 5
     y <- 3
     ((x+y+1) * beta(x+1,y+1))^-1 # == choose(x+y, x)

