arma

fun arma(x: DoubleArray, p: Int, q: Int): ARMA(source)

Fits an autoregressive moving average model ARMA(p, q).

Return

the fitted model.

Parameters

x

the time series.

p

the order of AR.

q

the order of MA.