outlier2

3.14.159265 • Public • Published

Outlier2

Compilation of other packages to find outliers in dataset.

Supported criteria/test

  • 3 sigma
  • Grubbs
  • Interquartile range
  • Iglewicz and Hoaglin method (MAD)
  • Median Differencing
  • Any external e.g. R-script (see test.js for more details)

Install

npm i outlier2

Usage

var outlier = require('outlier2');

var arr = [-2, 1, 2, 2, 3, 4, 15]; 
// Sync
outlier.mad(arr) // Return outlier values [15]
outlier.mad(arr, {indexes: true}) // Return outlier indexes [6]

// Async
outlier.mad(arr, {indexes: true}, function (err, outliers) {
    console.log((err) ? err : outliers);
})

Package Sidebar

Install

npm i outlier2

Weekly Downloads

6

Version

3.14.159265

License

MIT

Last publish

Collaborators

  • little-brother