Locally fit autoregressive models to non-stationary time series by minimum AIC procedure.
mlocar(y, max.order = NULL, span, const = 0, plot = TRUE)
mean.
variance.
the number of local spans.
order of the current model.
AR coefficients of current model.
innovation variance of the current model.
initial point of the data fitted to the current model.
end point of the data fitted to the current model.
power spectrum.
data length of the preceding stationary block.
data length of the new block.
order of the moving model.
innovation variance of the moving model.
AIC of the moving model.
order of the constant model.
innovation variance of the constant model.
AIC of the constant model.
a univariate time series.
upper limit of the order of AR model. Default is
\(2 \sqrt{n}\), where \(n\) is the length of the time series
y
.
length of the basic local span.
integer. 0
denotes constant vector is not included as a
regressor and 1
denotes constant vector is included as the first
regressor.
logical. If TRUE
(default), spectrums pspec
are
plotted.
The data of length \(n\) are divided into \(k\) locally stationary spans,
$$|<-- n_1 -->|<-- n_2 -->|<-- n_3 -->| ..... |<-- n_k -->|$$
where \(n_i\) (\(i=1,\ldots,k\)) denotes the number of basic spans, each of length span, which constitute the \(i\)-th locally stationary span. At each local span, the process is represented by a stationary autoregressive model.
G.Kitagawa and H.Akaike (1978) A Procedure for The Modeling of Non-Stationary Time Series. Ann. Inst. Statist. Math., 30, B, 351--363.
H.Akaike, G.Kitagawa, E.Arahata and F.Tada (1979) Computer Science Monograph, No.11, Timsac78. The Institute of Statistical Mathematics.
data(locarData)
z <- mlocar(locarData, max.order = 10, span = 300, const = 0)
z$arcoef
Run the code above in your browser using DataLab