T, procedure perYW implements Yule-Walker
estimation method for a periodic autoregressive PAR(p) model.
Order of autoregression p, which could be specified using sample
periodic PACF, is constant
for all seasons. For input time series x, matrix of parameters
phi and vector of parameters
del are computed.perYW(x, T, p, missval)T, this procedure implements a periodic version of the
Yule-Walker algorithm.
The algorithm is based on solving for the best coefficients of
LS prediction of $X(t)$ in terms of $X(t-1),...,X(t-p+1)$.
Sample autocorrelations are used in place
of population autocorrelations in the expressions of the best coefficients.predictperYW, loglikef, parmafdata(volumes)
perYW(volumes,24,2,NaN)Run the code above in your browser using DataLab