README
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
- Regression ⏏
- new Regression(X, Y)
- .inspect() ⇒
string
- Regression ⏏
Regression ⏏
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 |
string
regression.inspect() ⇒ 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.