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

    Function psignrank

    • Distribution function of the distribution of the Wilcoxon signed rank statistic. Equivalent to R's psignrank(q, n, lower.tail = TRUE, log.p = FALSE).

      Type Parameters

      Parameters

      • q: T

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

      • n: number

        Number of observations.

      • options: TailOptions = {}

        lowerTail and logP (see TailOptions).

      Returns VectorResult<T>

      The probability (or log probability).

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

      psignrank(10, 10);                        // 0.0419921875
      psignrank(40, 10, { lowerTail: false }); // 0.0966796875