DL.1step: Performs the Durbin-Levinson algorithm for one-step-ahead...

View source: R/tscourse.R

DL.1stepR Documentation

Performs the Durbin-Levinson algorithm for one-step-ahead prediction.

Description

Performs the Durbin-Levinson algorithm for one-step-ahead prediction.

Usage

DL.1step(X, gamma.0, gamma.n)

Arguments

X

a vector containing time series data.

gamma.0

the value of the autocovariance function at lag zero

gamma.n

a vector containing the values of the autocovariance function at lags 1 through length(X)

Value

a list containing the one-step-ahead predictions,the values of the partial autocorrelation function at lags 1 through length(X), the MSPEs of the predictions, and the matrix Phi. This function performs the Durbin-Levinson algorithm for one-step-ahead prediction. Data are centered before the prediction are computed and then mean is added back to the predictions.


gregorkb/tscourse documentation built on Oct. 3, 2022, 5:31 p.m.