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

    Function pt

    • Distribution function of the t distribution. Equivalent to R's pt(q, df, ncp, lower.tail = TRUE, log.p = FALSE).

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

      Type Parameters

      Parameters

      Returns VectorResult<T>

      The probability (or log probability).

      pt(2.1, 10, { lowerTail: false }); // 0.031038622101109286
      pt(1, 5, { ncp: 1 }); // 0.48092614124210525