

   Beta {base}                                  R Documentation

   TThhee BBeettaa DDiissttrriibbuuttiioonn

   UUssaaggee::

        dbeta(x, shape1, shape2, ncp=0)
        pbeta(q, shape1, shape2, ncp=0)
        qbeta(p, shape1, shape2)
        rbeta(n, shape1, shape2)

   AArrgguummeenntts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.

   VVaalluuee::

        These functions provide information about the Beta dis-
        tribution with parameters `shape1' and `shape2' (and
        optional non-centrality parameter `ncp').  `dbeta'
        gives the density, `pbeta' the distribution function,
        `qbeta' the quantile function and `rbeta' generates
        random deviates.

        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.

   SSeeee AAllssoo::

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

   EExxaammpplleess::

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

