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

    Function qwilcox

    • Quantile function of the distribution of the Wilcoxon rank sum statistic (Mann-Whitney U). Equivalent to R's qwilcox(p, m, n, lower.tail = TRUE, log.p = FALSE).

      Unlike R, memory use grows only with the range of the statistic (at most m * n / 2), so large samples such as m = n = 500 work.

      Type Parameters

      Parameters

      • p: T

        Probability (or log probability with logP): a number, number[] or Float64Array. The result has the same shape.

      • m: number

        Size of the first sample.

      • n: number

        Size of the second sample.

      • options: TailOptions = {}

        lowerTail and logP (see TailOptions).

      Returns VectorResult<T>

      The quantile(s).

      RangeError if m and n are so large that the required table cannot be allocated or would take more than 2^29 steps to build (min(m, n) times its length; about 6 to 8 s), or that the table loses its accuracy (near the center for m = n >= 550 or so; the tails stay available).

      qwilcox(0.025, 4, 6);         // 3
      qwilcox([0.25, 0.75], 4, 6); // [9, 15]