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

    Function tukeyTest

    • Tukey's all-pairs test of means (Tukey-Kramer for unequal sizes). Equivalent to PMCMRplus::tukeyTest() 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"];
      tukeyTest(x, g).pValue; // [[0.03403130149294014, NaN], [0.001492661804896774, 0.04527523376597547]]