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

    Function dt

    • Density of the t distribution. Equivalent to R's dt(x, df, ncp, log = FALSE).

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

      As in R, ncp: 0 gives the same values as the central distribution.

      Type Parameters

      Parameters

      Returns VectorResult<T>

      The density (or log density).

      dt(0, 5);             // 0.37960668982249446
      dt(1, 5, { ncp: 1 }); // 0.36232483923371867