Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

lirm

Balou910MIT0.0.1

Calculating response based on predictor and respective independent and dependent variable using least square method

regression, linear, model

readme

lirm

build status AppVeyor Build Status


Fitting linear regression models using least square method


Get it!

npm install --save lirm

Usage

var lirm = require('lirm')
var x = [1, 2, 3, 4, 5]
var y = [2, 4, 5, 4, 5]

lirm(x, y, 1, function (err, data) {
  if (err) throw err
  return data
})

API

lirm(x, y, predictor)

Enter independent x and dependent y variable plus predictor to calculate response.


License

MIT