@smockle/regressiondeprecated

Estimate multiple linear regression fit using least squares

Usage no npm install needed!

<script type="module">
  import smockleRegression from 'https://cdn.skypack.dev/@smockle/regression';
</script>

README

npm Build Status Build status codecov Known Vulnerabilities Greenkeeper badge

regression

Estimate multiple linear regression fit using least squares.

Installation

Run npm install --save @smockle/regression to add regression to your project.

Usage

const regression = require('@smockle/regression')

API Reference

Regression ⏏

Kind: Exported class

new Regression(X, Y)

Estimate multiple linear regression fit using least squares

Returns: Regression - Multiple linear regression

Param Type Description
X Matrix Input matrix
Y Matrix Input matrix

regression.inspect() ⇒ string

Format and print this regression

Kind: instance method of Regression
Returns: string - Regression results

Testing

regression includes several unit tests. After cloning the regression repo locally, run npm install in the project folder to install dependencies. Run npm test to execute the tests.