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

    Function sfTest

    • Shapiro-Francia test for normality. Equivalent to nortest::sf.test() in R. NaN values are dropped; the sample size must be between 5 and 5000.

      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];
      sfTest(x).pValue; // 0.8583583366365347