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

    Function dsignrank

    • Probability mass function of the distribution of the Wilcoxon signed rank statistic. Equivalent to R's dsignrank(x, n, log = FALSE).

      Type Parameters

      Parameters

      • x: T

        Value(s) at which to evaluate: a number, number[] or Float64Array. The result has the same shape.

      • n: number

        Number of observations.

      • options: DensityOptions = {}

        log (see DensityOptions).

      Returns VectorResult<T>

      The probability (or log probability).

      RangeError if n is so large that the required table cannot be allocated.

      dsignrank(5, 10);        // 0.0029296875
      dsignrank([0, 1, 2], 4); // [0.0625, 0.0625, 0.0625]