lirm
v0.0.1
Published
Calculating response based on predictor and respective independent and dependent variable using least square method
Downloads
27
Readme
lirm
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.