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

    Function flignerTest

    • Fligner-Killeen (median) test of homogeneity of variances. Equivalent to R's fligner.test().

      Parameters

      • x: Sample | readonly Sample[]

        An array of samples (each with at least one non-missing value, as R requires), or one sample with group labels g.

      • Optionalg: readonly GroupLabel[]

        Group labels, parallel to x.

        There is also a formula form, flignerTest("y ~ g", data) (next overload).

      Returns ChisqStatTestResult

      const r = flignerTest([[2.9, 3.0, 2.5, 2.6, 3.2], [3.8, 2.7, 4.0, 2.4], [2.8, 3.4, 3.7, 2.2, 2.0]]);
      r.statistic; // 5.209183208821734
      r.pValue; // 0.07393332507668932
    • Fligner-Killeen test from a formula and a data frame. As R's fligner.test(formula, data): "y ~ g", one group per level of g. Only the variables of the formula count: the rows where one of them is missing are dropped.

      Parameters

      • formula: string

        "y ~ g" (one variable on each side).

      • data: DataFrame

        The data frame: an object of columns (null or NaN for a missing value).

      Returns ChisqStatTestResult