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

    Function pearsonTest

    • Pearson chi-square test for normality, with classes of equal probability under the fitted normal distribution. Equivalent to nortest::pearson.test() in R. NaN values are dropped.

      Parameters

      Returns NormalityTestResult

      const x = [2.1, 3.4, 1.9, 5.6, 4.4, 3.3, 2.8, 4.1, 3.9, 6.2];
      pearsonTest(x).pValue; // 0.8494670333918255