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

    Function pf

    • Distribution function of the F distribution. Equivalent to R's pf(q, df1, df2, ncp, lower.tail = TRUE, log.p = FALSE).

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

      Type Parameters

      Parameters

      • q: T

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

      • df1: number

        Numerator degrees of freedom.

      • df2: number

        Denominator degrees of freedom.

      • options: TailOptions & NoncentralOption = {}

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

      Returns VectorResult<T>

      The probability (or log probability).

      pf(4.1, 2, 20, { lowerTail: false }); // 0.03219651558603902