4.0.0 • Published 11 months ago
@smockle/regression v4.0.0
regression
Estimate multiple linear regression fit using least squares.
Installation
Run npm install --save @smockle/regression to add regression to your project.
Usage
import Regression from '@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.