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

    Function manyOneUTest

    • Steel's many-to-one rank test in its normal approximation: the Mann-Whitney statistic of each group against the control (the first group), each pair ranked on its own (midranks), standardised with the tie-corrected variance. Equivalent to PMCMRplus::manyOneUTest() in R. The statistic is positive when the group ranks higher than the control. With pAdjustMethod "single-step" (the default; at least three groups) the p-values are the exact simultaneous normal probabilities (R approximates them by randomised integration).

      Parameters

      Returns PMCMRResult

      const x = [1.2, 2.3, 1.8, 2.9, 3.1, 3.6, 4.0, 4.4, 5.2];
      const g = ["a", "a", "a", "b", "b", "b", "c", "c", "c"];
      manyOneUTest(x, g).pValue; // [[0.08993551204759488], [0.08993551204759488]]