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

    Function kwAllPairsDunnTest

    • Dunn's all-pairs test of mean ranks with adjusted p-values. Equivalent to PMCMRplus::kwAllPairsDunnTest() in R.

      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"];
      kwAllPairsDunnTest(x, g).pValue; // [[0.3594249897579995, NaN], [0.02187107427460692, 0.3594249897579995]]