UNPKG

moving-average-arima

Version:

ARIMA, SARIMA, SARIMAX and AutoARIMA models for time series analysis and forecasting

15 lines (11 loc) 209 B
const arima = require('../../') const ts = [0, 0, 0, 0, 11, 9.99, 14] const [pred, errors] = arima(ts, 2, { method: 0, optimizer: 6, p: 3, q: 0, d: 1, verbose: true }) console.log(pred, errors)