UNPKG

arima

Version:

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

15 lines (11 loc) 210 B
const arima = require('.') const pVals = [0, 0, 0, 0, 12, 9.55, 12] const [pred, errors] = arima(pVals, 2, { method: 0, optimizer: 6, p: 3, q: 0, d: 1, verbose: true }) console.log(pred, errors)