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

    Function pchisq

    • Distribution function of the chi-squared distribution. Equivalent to R's pchisq(q, df, ncp = 0, lower.tail = TRUE, log.p = FALSE).

      If ncp is omitted the central distribution is used; otherwise the noncentral chi-squared distribution.

      Type Parameters

      Parameters

      Returns VectorResult<T>

      The probability (or log probability).

      pchisq(3.84, 1, { lowerTail: false }); // 0.05004352124870517
      pchisq(5, 3, { ncp: 2 }); // 0.5934051800831556