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

    Function rwilcox

    • Random numbers from the distribution of the Wilcoxon rank sum statistic. Equivalent to R's rwilcox().

      Parameters

      • nn: number

        Number of values to generate.

      • m: number

        Number of observations in the first sample.

      • n: number

        Number of observations in the second sample.

      Returns number[]

      An array of nn values; NaN for invalid parameters.

      RangeError if m + n exceeds 2147483647 or n exceeds 2^24 (one uniform is drawn per value of the second sample), before drawing.

      setSeed(1);
      rwilcox(5, 4, 6); // [7, 5, 12, 17, 10]