UNPKG
statsmodels-js
Version:
latest (0.4.2)
0.4.2
0.4.1
0.4.0
0.3.1
0.3.0
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
basic statistics library.
github.com/egusahiroaki/statsmodels-js
egusahiroaki/statsmodels-js
statsmodels-js
/
example
/
main.js
12 lines
(10 loc)
•
253 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
// needed to run `npm run build`
const
Stats = require(
"../dist/index"
);
const
x = [ [
10, 20, 30
], [
20, 42, 63
], [
4, 8, 16
], ];
const
y = [
30
,
50
,
70
];
const
result =
new
Stats.MultipleLinearRegression(x, y).fit(); console.log(result.summary());