ar

fun ar(x: DoubleArray, p: Int): AR(source)

Fits an autoregressive model AR(p).

Return

the fitted model.

Parameters

x

the time series.

p

the order of AR.