rStats.js v1.3.0
    Preparing search index...

    Function pbeta

    • Distribution function of the beta distribution. Equivalent to R's pbeta(q, shape1, shape2, ncp = 0, lower.tail = TRUE, log.p = FALSE).

      If ncp is omitted the central distribution is used; otherwise the noncentral beta distribution.

      Type Parameters

      Parameters

      • q: T

        Quantile(s): a number, number[] or Float64Array. The result has the same shape.

      • shape1: number

        First shape parameter (a).

      • shape2: number

        Second shape parameter (b).

      • options: TailOptions & NoncentralOption = {}

        ncp (see NoncentralOption), lowerTail and logP (see TailOptions).

      Returns VectorResult<T>

      The probability (or log probability).

      pbeta(0.5, 2, 3); // 0.6875 (up to rounding)