Beta                  package:base                  R Documentation

_T_h_e _B_e_t_a _D_i_s_t_r_i_b_u_t_i_o_n

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

     Density, distribution function, quantile function and random
     generation for the Beta distribution with parameters `shape1' and
     `shape2' (and optional non-centrality parameter `ncp').

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

     dbeta(x, shape1, shape2, ncp=0, log = FALSE)
     pbeta(q, shape1, shape2, ncp=0, lower.tail = TRUE, log.p = FALSE)
     qbeta(p, shape1, shape2,        lower.tail = TRUE, log.p = FALSE)
     rbeta(n, shape1, shape2)

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

    x, q: vector of quantiles.

       p: vector of probabilities.

       n: number of observations to generate.

shape1, shape2: positive parameters of the Beta distribution.

     ncp: non-centrality parameter.

log, log.p: logical; if TRUE, probabilities p are given as log(p).

lower.tail: logical; if TRUE (default), probabilities are P[X <= x],
          otherwise, P[X > x].

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

     The Beta distribution with parameters `shape1' = a and `shape2' =
     b has density

           Gamma(a+b)/(Gamma(a)Gamma(b))x^(a-1)(1-x)^(b-1)

     for a > 0, b > 0 and 0 < x < 1.

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

     `dbeta' gives the density, `pbeta' the distribution function,
     `qbeta' the quantile function, and `rbeta' generates random
     deviates.

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

     `beta' for the Beta function, and `dgamma' for the Gamma
     distribution.

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

     x <- seq(0, 1, length=21)
     dbeta(x, 1, 1)
     pbeta(x, 1, 1)

