levinson(x, p = NULL)
length(x)
or nrow(x)
). toeplitz(acf(1:p)) * y = -acf(2:p+1).
The solution [1, y'] is the denominator of an all pole filter approximation to the signal x which generated the autocorrelation function acf.
acf is the autocorrelation function for lags 0 to p.
Octave