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

    Function qtukey

    • Quantile function of the studentized range distribution (used by Tukey's HSD). Equivalent to R's qtukey(p, nmeans, df, nranges = 1, lower.tail = TRUE, log.p = FALSE).

      Results aim at a relative accuracy of about 1e-15. R's ptukey is accurate to only about 8 digits, so values can differ from R's beyond that.

      Type Parameters

      Parameters

      • p: T

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

      • nmeans: number

        Number of means (sample size of each range).

      • df: number

        Degrees of freedom of the standard deviation estimate.

      • options: TukeyOptions = {}

        nranges, lowerTail and logP (see TukeyOptions).

      Returns VectorResult<T>

      The quantile(s).

      qtukey(0.95, 3, 12); // 3.7729289657270084
      qtukey(0.95, 4, 20); // 3.958293560945357